mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Modify if
check conditions
This commit is contained in:
parent
83460855f9
commit
d354f61b20
@ -3006,7 +3006,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
* Run PostDamageAbAttr from any source of damage that is not from a multi-hit
|
* Run PostDamageAbAttr from any source of damage that is not from a multi-hit
|
||||||
* 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) {
|
||||||
applyPostDamageAbAttrs(PostDamageAbAttr, this, damage, this.hasPassive(), false, [], source);
|
applyPostDamageAbAttrs(PostDamageAbAttr, this, damage, this.hasPassive(), false, [], source);
|
||||||
}
|
}
|
||||||
return damage;
|
return damage;
|
||||||
|
Loading…
Reference in New Issue
Block a user