[Bug] Self effect moves fix for Shield Dust (#3167)
* Self effect moves fix for Shield Dust Moves with self effects no longer affected by Shield Dust. * comma spaces Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com> --------- Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
This commit is contained in:
parent
33978481ce
commit
4b0157d5d7
|
@ -973,7 +973,9 @@ export class MoveEffectAttr extends MoveAttr {
|
|||
getMoveChance(user: Pokemon, target: Pokemon, move: Move, selfEffect?: Boolean, showAbility?: Boolean): integer {
|
||||
const moveChance = new Utils.NumberHolder(move.chance);
|
||||
applyAbAttrs(MoveEffectChanceMultiplierAbAttr, user, null, moveChance, move, target, selfEffect, showAbility);
|
||||
applyPreDefendAbAttrs(IgnoreMoveEffectsAbAttr,target,user,null,null, moveChance);
|
||||
if (!selfEffect) {
|
||||
applyPreDefendAbAttrs(IgnoreMoveEffectsAbAttr, target, user, null, null, moveChance);
|
||||
}
|
||||
return moveChance.value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue