mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 15:22:35 -05:00
Merge pull request #530 from urkerab/faint-remove-elem
Always remove the element when a sprite faints
This commit is contained in:
@@ -1146,6 +1146,11 @@ var Sprite = (function () {
|
||||
opacity: 0
|
||||
}, 'accel');
|
||||
this.battle.activityWait(this.elem);
|
||||
var self = this;
|
||||
this.elem.promise().done(function() {
|
||||
self.elem.remove();
|
||||
self.elem = null;
|
||||
});
|
||||
};
|
||||
Sprite.prototype.delay = function (time) {
|
||||
this.elem.delay(time);
|
||||
|
||||
Reference in New Issue
Block a user