This commit is contained in:
aozhiwei 2022-09-23 19:00:57 +08:00
parent 38397e98d1
commit 68d486a1f7

View File

@ -1098,7 +1098,7 @@ void Creature::DoSkill(int skill_id,
}
}
Entity* entity = room->GetEntityByUniId(skill_target_id_);
if (entity && entity->IsEntityType(ET_Player)) {
if (entity && entity->IsCreature(room)) {
Creature* c = (Creature*)entity;
std::set<Creature*> target_list;
skill_target_pos_ = c->GetPos();