Wonder Skin (#103)

the accuracy should be 50(percent) instead of 0 (which would make moves Sure Hit)
This commit is contained in:
aprogergely
2021-04-22 22:11:54 +02:00
committed by GitHub
parent d3bf81e764
commit 4b9fe2eb4c

View File

@@ -865,7 +865,7 @@ BattleHandlers::AccuracyCalcTargetAbility.add(:UNAWARE,
BattleHandlers::AccuracyCalcTargetAbility.add(:WONDERSKIN, BattleHandlers::AccuracyCalcTargetAbility.add(:WONDERSKIN,
proc { |ability,mods,user,target,move,type| proc { |ability,mods,user,target,move,type|
if move.statusMove? && user.opposes?(target) if move.statusMove? && user.opposes?(target)
mods[BASE_ACC] = 0 if mods[BASE_ACC]>50 mods[BASE_ACC] = 50 if mods[BASE_ACC]>50
end end
} }
) )