#==============================================================================
# ** Resist Buff State Module
#------------------------------------------------------------------------------
# Set the ID of the state(s) that will resist buffs and/or debuffs.
#==============================================================================
module RINOBI module RB_State
Buff_Resist = [1, 2, 5, 9]
Debuff_Resist = [1, 2, 5, 9]
end end
#==============================================================================
# ** Game_Battler
#------------------------------------------------------------------------------
# A battler class with methods for sprites and actions added. This class
# is used as a super class of the Game_Actor class and Game_Enemy class.
#==============================================================================
class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# * Alias Method: Add Buff
#--------------------------------------------------------------------------
alias :rb_add_buff :add_buff
def add_buff(param_id, turns)
rb = RINOBI::RB_State::Buff_Resist
return if states.any? {|state| rb.include?(state.id)}
rb_add_buff(param_id, turns)
end
#--------------------------------------------------------------------------
# * Alias Method: Add Debuff
#--------------------------------------------------------------------------
alias :rb_add_debuff :add_debuff
def add_debuff(param_id, turns)
rb = RINOBI::RB_State:

ebuff_Resist
return if states.any? {|state| rb.include?(state.id)}
rb_add_debuff(param_id, turns)
end
end