class PokeBattle_Move_161 < PokeBattle_Move
if isConst?(opponent.species,PBSpecies,:LOTAD,:LOMBRE,:LUDICOLO)
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
damage=pbEffectFixedDamage(opponent.totalhp,attacker,opponent,hitnum,alltargets,showanimation)
if opponent.fainted?
@battle.pbDisplay(_INTL("It's a one-hit KO!"))
end
return damage
end
else
def isHealingMove?
return USENEWBATTLEMECHANICS
end
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
ret=super(attacker,opponent,hitnum,alltargets,showanimation)
if opponent.damagestate.calcdamage>0
hpgain=(opponent.damagestate.hplost/2).round
if opponent.hasWorkingAbility(:LIQUIDOOZE)
attacker.pbReduceHP(hpgain,true)
@battle.pbDisplay(_INTL("{1} sucked up the liquid ooze!",attacker.pbThis))
elsif attacker.effects[PBEffects::HealBlock]==0
hpgain=(hpgain*1.3).floor if attacker.hasWorkingItem(:BIGROOT)
attacker.pbRecoverHP(hpgain,true)
@battle.pbDisplay(_INTL("{1} had its energy drained!",opponent.pbThis))
end
end
return ret
end
end
end