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
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
|
* 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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user