# HP 的伤害减法运算
last_hp = self.hp
##############防止治疗魔法在非战斗下不可用#######################
if self.damage<=0 and not $game_temp.in_battle
self.hp -= self.damage
end
#################################################################
effective |= self.hp != last_hp