################################################################################
# The user's type determines the type of this move. (Revelation Dance)
################################################################################
class PokeBattle_Move_161 < PokeBattle_Move
def pbModifyType(type,attacker,opponent)
type=getConst(PBTypes,:NORMAL) || 0
if isConst?(@id,PBMoves,:REVELATIONDANCE)
type=(getConst(PBTypes,:FIGHTING) || 0) if attacker.pbHasPrimaryType?(:FIGHTING)
type=(getConst(PBTypes,:FLYING) || 0) if attacker.pbHasPrimaryType?(:FLYING)
type=(getConst(PBTypes,:POISON) || 0) if attacker.pbHasPrimaryType?(:POISON)
type=(getConst(PBTypes,:GROUND) || 0) if attacker.pbHasPrimaryType?(:GROUND)
type=(getConst(PBTypes,:ROCK) || 0) if attacker.pbHasPrimaryType?(:ROCK)
type=(getConst(PBTypes,:BUG) || 0) if attacker.pbHasPrimaryType?(:BUG)
type=(getConst(PBTypes,:GHOST) || 0) if attacker.pbHasPrimaryType?(:GHOST)
type=(getConst(PBTypes,:STEEL) || 0) if attacker.pbHasPrimaryType?(:STEEL)
type=(getConst(PBTypes,:FIRE) || 0) if attacker.pbHasPrimaryType?(:FIRE)
type=(getConst(PBTypes,:WATER) || 0) if attacker.pbHasPrimaryType?(:WATER)
type=(getConst(PBTypes,:GRASS) || 0) if attacker.pbHasPrimaryType?(:GRASS)
type=(getConst(PBTypes,:ELECTRIC) || 0) if attacker.pbHasPrimaryType?(:ELECTRIC)
type=(getConst(PBTypes,:PSYCHIC) || 0) if attacker.pbHasPrimaryType?(:PSYCHIC)
type=(getConst(PBTypes,:ICE) || 0) if attacker.pbHasPrimaryType?(:ICE)
type=(getConst(PBTypes,:DRAGON) || 0) if attacker.pbHasPrimaryType?(:DRAGON)
type=(getConst(PBTypes,:DARK) || 0) if attacker.pbHasPrimaryType?(:DARK)
type=(getConst(PBTypes,:FAIRY) || 0) if attacker.pbHasPrimaryType?(:FAIRY)
end
return type
end
end