Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # Temporal Destruction
- ################################################################################
- class PokeBattle_Move_163 < PokeBattle_Move
- def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
- ret=super(attacker,opponent,hitnum,alltargets,showanimation)
- if opponent.damagestate.calcdamage>0
- showanim=true
- if attacker.pbCanReduceStatStage?(PBStats::DEFENSE,false,true,attacker)
- attacker.pbReduceStat(PBStats::DEFENSE,1,true,showanim,true,attacker)
- showanim=false
- end
- if attacker.pbCanReduceStatStage?(PBStats::SPDEF,false,true,attacker)
- attacker.pbReduceStat(PBStats::SPDEF,1,true,showanim,true,attacker)
- showanim=false
- end
- end
- end
- def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
- ret=super(attacker,opponent,hitnum,alltargets,showanimation)
- if opponent.damagestate.calcdamage>0
- attacker.effects[PBEffects::HyperBeam]=2
- attacker.currentMove=@id
- end
- return ret
- end
- def pbCalcDamage(attacker,opponent)
- return super(attacker,opponent,PokeBattle_Move::IGNOREPKMNTYPES)
- end
- end
- ################################################################################
- # Appare Giri
- ################################################################################
- class PokeBattle_Move_164 < PokeBattle_Move
- def pbAccuracyCheck(attacker,opponent)
- return true
- end
- def pbAdditionalEffect(attacker,opponent)
- if !opponent.hasWorkingAbility(:INNERFOCUS) &&
- opponent.effects[PBEffects::Substitute]==0
- opponent.effects[PBEffects::Flinch]=true
- return true
- end
- return false
- end
- def pbModifyDamage(damagemult,attacker,opponent)
- if opponent.effects[PBEffects::Minimize]
- return (damagemult*2.0).round
- end
- return damagemult
- end
- end
- ################################################################################
- # Leaf Hurricane
- ################################################################################
- class PokeBattle_Move_165 < PokeBattle_Move
- def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
- ret=super(attacker,opponent,hitnum,alltargets,showanimation)
- if opponent.damagestate.calcdamage>0
- showanim=true
- if attacker.pbCanReduceStatStage?(PBStats::SPEED,false,true,attacker)
- attacker.pbReduceStat(PBStats::SPEED,1,true,showanim,true,attacker)
- showanim=false
- end
- if attacker.pbCanReduceStatStage?(PBStats::DEFENSE,false,true,attacker)
- attacker.pbReduceStat(PBStats::DEFENSE,1,true,showanim,true,attacker)
- showanim=false
- end
- if attacker.pbCanReduceStatStage?(PBStats::SPDEF,false,true,attacker)
- attacker.pbReduceStat(PBStats::SPDEF,1,true,showanim,true,attacker)
- showanim=false
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement