class Game_Enemy < Game_Battler
def damage_valid?
return true if $game_troop.alive_members == [self]
return false if $data_enemies[@enemy_id].note.include?("<我不是杂鱼>")
return true
end
end
class Game_Actor
def damage_valid?
return true if $game_party.alive_members == [self]
@team=[]
(0...$game_party.alive_members.size).all?{|i|@team.push($game_party.alive_members[i].id)}
if @actor_id==19
return false unless @team.include?(20)#20号队友存在时19号队友不受到伤害
end
return false if $data_actors[@actor_id].note.include?("<我不是杂鱼>")
return true
end
end
class Game_Battler
def damage_valid?
true
end
alias assign_hp_20140817 hp=
def hp=(hp)
assign_hp_20140817(hp) if hp >= @hp || damage_valid?
end
alias mdv_20140817 make_damage_value
def make_damage_value(user, item)
mdv_20140817(user, item) if damage_valid?
end
end