Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** JtS - Almashield State
- #------------------------------------------------------------------------------
- # Untuk fungsi Almashield. Untuk resist all states
- #==============================================================================
- =begin
- Gunakan tag <almashield> pada state untuk bikin state resist segalanya
- =end
- module JTS
- AS_NonResist = [18,19]
- # Catat yang non resist disini
- end
- # ----------------------------------------------------------------------------
- # End of config
- # ----------------------------------------------------------------------------
- class RPG::State
- def almashield?
- note[/<almashield>/i]
- end
- end
- class Game_Battler
- alias jts_ashield_add_st add_state
- def add_state(state_id)
- return if states.any? do |state|
- state.almashield?
- end && !JTS::AS_NonResist.include?(state_id)
- jts_ashield_add_st(state_id)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment