################################################################################
# Relic Song
################################################################################
class PokeBattle_Move_648 < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
if isConst?(attacker.species,PBSpecies,:MELOETTA)
if attacker.form==1
attacker.form=0
elsif attacker.form==0
attacker.form=1
end
transformed=true
end
ret=super(attacker,opponent,hitnum,alltargets,showanimation)
if opponent.damagestate.calcdamage>0
showanim=true
return ret
end
end
def pbAdditionalEffect(attacker,opponent)
if opponent.pbCanSleep?(false)
opponent.pbSleep
@battle.pbDisplay(_INTL("{1} went to sleep!",opponent.pbThis))
return true
end
return false
end
end