Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Script section PokeBattle_Battler, under the line
- # attr_accessor :movesUsed
- attr_accessor :movesUsage
- #Script section Battler_Initialize, under the line
- # @movesUsed = []
- @movesUsage = []
- #Script section Battler_UseMove, under the line
- # @movesUsed.push(move.id) if [email protected]?(move.id) # For Last Resort
- if @movesUsage[move.id]
- @movesUsage[move.id]+=1
- else
- @movesUsage[move.id]=1
- end
- #Script section Battle_UseMove, under the lines
- # chance = move.pbAdditionalEffectChance(user,b)
- # next if chance<=0
- if user.movesUsage[move.id]>0
- userusage=user.movesUsage[move.id]
- if userusage>=chance/10
- chance=100
- user.movesUsage[move.id]=0
- else
- chance=0
- end
- end
Add Comment
Please, Sign In to add comment