Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # Ensures the next hit is critical and lowers the opponents speed. (420 No Scope)
- ################################################################################
- class PokeBattle_Move_1B8 < PokeBattle_Move
- def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
- if attacker.effects[PBEffects::LaserFocus]
- @battle.pbDisplay(_INTL("But it failed!"))
- return -1
- end
- pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
- attacker.effects[PBEffects::LaserFocus]=true
- @battle.pbDisplay(_INTL("{1} is focused!",attacker.pbThis))
- return 0
- return super(attacker,opponent,hitnum,alltargets,showanimation)
- return -1 if pbTypeImmunityByAbility(pbType(@type,attacker,opponent),attacker,opponent)
- return -1 if !opponent.pbCanReduceStatStage?(PBStats::SPEED,attacker,true,self)
- pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
- ret=opponent.pbReduceStat(PBStats::SPEED,1,attacker,false,self)
- return ret ? 0 : -1
- end
- end
- def pbAdditionalEffect(attacker,opponent)
- return if opponent.damagestate.substitute
- if opponent.pbCanReduceStatStage?(PBStats::SPEED,attacker,false,self)
- opponent.pbReduceStat(PBStats::SPEED,1,attacker,false,self)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement