Pass source to postApplyDamage in pokemon.ts

This commit is contained in:
Sirz Benjie 2025-06-17 13:20:54 -05:00
parent 5bb423810c
commit 186a2a5985
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138

View File

@ -4049,7 +4049,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
* Multi-hits are handled in move-effect-phase.ts for PostDamageAbAttr * Multi-hits are handled in move-effect-phase.ts for PostDamageAbAttr
*/ */
if (!source || source.turnData.hitCount <= 1) { if (!source || source.turnData.hitCount <= 1) {
applyAbAttrs("PostDamageAbAttr", { pokemon: this, damage }); applyAbAttrs("PostDamageAbAttr", { pokemon: this, damage, source });
} }
return damage; return damage;
} }