mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 09:02:47 +02:00
Pass source to postApplyDamage in pokemon.ts
This commit is contained in:
parent
5bb423810c
commit
186a2a5985
@ -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