mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
Pass source to postApplyDamage in pokemon.ts
This commit is contained in:
parent
44d4088b35
commit
2c2834734d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user