Pass source to postApplyDamage in pokemon.ts

This commit is contained in:
Sirz Benjie 2025-06-17 13:20:54 -05:00
parent 44d4088b35
commit 2c2834734d
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
*/
if (!source || source.turnData.hitCount <= 1) {
applyAbAttrs("PostDamageAbAttr", { pokemon: this, damage });
applyAbAttrs("PostDamageAbAttr", { pokemon: this, damage, source });
}
return damage;
}