class Game_Battler
#--------------------------------------------------------------------------
# ● ステート [無敵] 判定
# act : 処理対象
#--------------------------------------------------------------------------
def invincible?(act = nil)
# ステート[無敵]が付加されている場合
if self.states.include?($game_special_states["invincible"])
# 処理対象で分岐
case act
when RPG::Skill
return true if act.scope == 1 || act.scope == 2
when RPG::Item
return true if act.scope == 1 || act.scope == 2
when nil
return true
end
end
return false
end
end