删除 掉落

This commit is contained in:
aozhiwei 2022-08-30 19:10:36 +08:00
parent 16869af058
commit ee253d5b69

View File

@ -265,7 +265,7 @@ void Hero::DecHP(float dec_hp, int killer_id, const std::string& killer_name, in
void Hero::BeKill(int killer_id, const std::string& killer_name, int weapon_id)
{
dead = true;
if (meta->HasDrop()) {
if (meta->HasDrop() && !room->IsPveRoom()) {
room->ScatterDrop(GetPos(), meta->RandDrop());
}
room->frame_event.AddDead(GetWeakPtrRef(), 0);