添加翻滚逻辑处理

This commit is contained in:
aozhiwei 2020-07-29 14:24:57 +08:00
parent 98f6454670
commit c665a0080a

View File

@ -1246,9 +1246,10 @@ void Human::DoSkill()
ResetSkill();
playing_skill = true;
last_use_skill_frameno_ = room->GetFrameNo();
#if 0
skill_target_id = GetEntityUniId();
#endif
if (skill_meta_->i->skill_target() == kST_Self
) {
skill_target_id = GetEntityUniId();
}
Entity* entity = room->GetEntityByUniId(skill_target_id);
if (entity && entity->IsEntityType(ET_Player)) {
Human* hum = (Human*)entity;