Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PokeBattle_StatUpTargetStatDownMove < PokeBattle_Move
- def pbFailsAgainstTarget?(user,target)
- return false if damagingMove?
- return !target.pbCanLowerStatStage?(@statDown[0],user,self,true)
- end
- def pbMoveFailed?(user,targets)
- return false if damagingMove?
- return !user.pbCanRaiseStatStage?(@statUp[0],user,self,true)
- end
- def pbEffectGeneral(user)
- return if damagingMove?
- user.pbRaiseStatStage(@statUp[0],@statUp[1],user)
- end
- def pbEffectAgainstTarget(user,target)
- return if damagingMove?
- target.pbLowerStatStage(@statDown[0],@statDown[1],user)
- end
- def pbAdditionalEffect(user,target)
- if user.pbCanRaiseStatStage?(@statUp[0],user,self)
- user.pbRaiseStatStage(@statUp[0],@statUp[1],user)
- end
- if !target.damageState.substitute && target.pbCanLowerStatStage?(@statDown[0],user,self)
- target.pbLowerStatStage(@statDown[0],@statDown[1],user)
- end
- end
- end
- class PokeBattle_Move_CODE < PokeBattle_StatUpTargetStatDownMove
- def initialize(battle,move)
- super
- @statUp = [:STAT,amount]
- @statDown = [:STAT,amount]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement