mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-25 15:55:59 +00:00
Refactoring of code relating to switching, effect damage and effects that trigger after a move is used
This commit is contained in:
@@ -59,7 +59,7 @@ class PokeBattle_Move_MaxUserAttackLoseHalfOfTotalHP < PokeBattle_Move
|
||||
|
||||
def pbEffectGeneral(user)
|
||||
hpLoss = [user.totalhp/2,1].max
|
||||
user.pbReduceHP(hpLoss,false)
|
||||
user.pbReduceHP(hpLoss, false, false)
|
||||
if user.hasActiveAbility?(:CONTRARY)
|
||||
user.stages[:ATTACK] = -6
|
||||
user.statsLowered = true
|
||||
|
||||
Reference in New Issue
Block a user