#===============================================================================
# Raijin’s Fury
#===============================================================================
# Sets Electric Terrain + is physical or special depending on what's best.
#-------------------------------------------------------------------------------
class PokeBattle_Move_Z00A < PokeBattle_ZMove
def initialize(battle,move,pbmove)
super
@calcCategory = 1
end
def physicalMove?(thisType=nil); return (@calcCategory==0); end
def specialMove?(thisType=nil); return (@calcCategory==1); end
def pbOnStartUse(user,targets)
# Calculate user's effective attacking value
stageMul = [2,2,2,2,2,2, 2, 3,4,5,6,7,8]
stageDiv = [8,7,6,5,4,3, 2, 2,2,2,2,2,2]
atk = user.attack
atkStage = user.stages[PBStats::ATTACK]+6
realAtk = (atk.to_f*stageMul[atkStage]/stageDiv[atkStage]).floor
spAtk = user.spatk
spAtkStage = user.stages[PBStats::SPATK]+6
realSpAtk = (spAtk.to_f*stageMul[spAtkStage]/stageDiv[spAtkStage]).floor
# Determine move's category
@calcCategory = (realAtk>realSpAtk) ? 0 : 1
end
def pbAdditionalEffect(user,target)
@battle.pbStartTerrain(user,PBBattleTerrains::Electric)
end
end