No I mean I tested it yesterday and it seemed to work for me (unless I misunderstood something). I have Yanfly stuff and with this it showed "no effect" when I made an attack deal 0 damage. Under Yanfly plugins, a plugin with:
I should have tested this for myself to understand what "Yanfly stuff" is. I went on a witchhunt to find any other plugin that messes with the Sprite_Damage function. Kept coming back to Battle Engine Core.
So I turned plugins on and off one by one in an empty project... it's gotta be battle engine core lol
If I don't have it turned on, this works fine:
JavaScript:
Sprite_Damage.prototype.setup = function(target) {
var result = target.result();
etc
Which makes sense because that's how it looks in rpg_sprites.js. If I turn on Battle Engine, the sprites start to slide upward off the screen as described. So, I tried this one:
JavaScript:
Sprite_Damage.prototype.setup = function(target) {
this._result = target.shiftDamagePopup();
var result = this._result;
etc
This makes it stop working altogether and just does default functions, making me think some Yanfly catchall is disabling the plugin or something.
Again, there's this bit of code in the battle core. But I tried going so far as to comment it out and it still causes
var result = target.result(); to make popup's scroll off the screen.
JavaScript:
Game_Battler.prototype.shiftDamagePopup = function() {
if (!this._damagePopup) this.clearDamagePopup();
return this._damagePopup.shift();
};
The last pieces of code I see in battle engine core are these:
JavaScript:
Game_Battler.prototype.startDamagePopup = function() {
var result = this.result();
if (result.missed || result.evaded) {
var copyResult = JsonEx.makeDeepCopy(result);
copyResult.hpAffected = false;
copyResult.mpDamage = 0;
this._damagePopup.push(copyResult);
}
if (result.hpAffected) {
var copyResult = JsonEx.makeDeepCopy(result);
copyResult.mpDamage = 0;
this._damagePopup.push(copyResult);
}
if (result.mpDamage !== 0) {
var copyResult = JsonEx.makeDeepCopy(result);
copyResult.hpAffected = false;
this._damagePopup.push(copyResult);
}
};
and
JavaScript:
Sprite_Battler.prototype.setupDamagePopup = function() {
if (this._battler.isDamagePopupRequested()) {
if (this._battler.isSpriteVisible()) {
var sprite = new Sprite_Damage();
sprite.x = this.x + this.damageOffsetX();
sprite.y = this.y + this.damageOffsetY();
sprite.setup(this._battler);
this.pushDamageSprite(sprite);
BattleManager._spriteset.addChild(sprite);
this._battler.clearResult();
}
} else {
this._battler.clearDamagePopup();
}
};
But I don't know. Something is causing it to shift the popup endlessly but I don't know JS enough to make heads or tails of this.