class Battle::Move::TwoTurnAttackChargeRaiseUserSpAtk1OneTurnInRain < Battle::Move::TwoTurnMove
attr_reader :statUp
def initialize(battle, move)
super
@statUp = [:SPECIAL_ATTACK, 1]
end
def pbChargingTurnMessage(user, targets)
@battle.pbDisplay(_INTL("{1} absorbed electricity!", user.pbThis))
end
def pbChargingTurnEffect(user, target)
if user.pbCanRaiseStatStage?(@statUp[0], user, self)
user.pbRaiseStatStage(@statUp[0], @statUp[1], user)
end
end
def pbIsChargingTurn?(user)
ret = super
if !user.effects[PBEffects::TwoTurnAttack] &&
[:Rain, :HeavyRain].include?(user.effectiveWeather)
@powerHerb = false
@chargingTurn = true
@damagingTurn = true
return false
end
return ret
end
end