def mana_shield_effect damage = self.damage >> 1 sp_minus = [damage, self.sp].min self.damage -= sp_minus self.sp -= sp_minus end
mana_shield_effect if self.state?(魔法盾状态 ID)