1
This commit is contained in:
parent
c3c5b6ad01
commit
d16aacac63
@ -168,7 +168,8 @@ enum SkillTarget_e
|
|||||||
ST_EnemySingle = 6,
|
ST_EnemySingle = 6,
|
||||||
ST_EnemyGroup = 7,
|
ST_EnemyGroup = 7,
|
||||||
ST_EnemyAndObject = 8,
|
ST_EnemyAndObject = 8,
|
||||||
ST_EnemyAndSelf = 9
|
ST_EnemyAndSelf = 9,
|
||||||
|
ST_SingleEnemyAndSelf = 10
|
||||||
};
|
};
|
||||||
|
|
||||||
enum BuffTriggerType_e
|
enum BuffTriggerType_e
|
||||||
|
@ -1789,6 +1789,7 @@ void Human::SelectSkillTargets(const a8::Vec2& target_pos, std::set<Entity*>& ta
|
|||||||
break;
|
break;
|
||||||
case ST_FriendlyIncludeSelf:
|
case ST_FriendlyIncludeSelf:
|
||||||
{
|
{
|
||||||
|
target_list.insert(this);
|
||||||
for (auto& cell : grid_list) {
|
for (auto& cell : grid_list) {
|
||||||
for (Human* hum : cell->human_list) {
|
for (Human* hum : cell->human_list) {
|
||||||
if ((hum == this || hum->team_id == team_id) &&
|
if ((hum == this || hum->team_id == team_id) &&
|
||||||
@ -1858,6 +1859,20 @@ void Human::SelectSkillTargets(const a8::Vec2& target_pos, std::set<Entity*>& ta
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case ST_SingleEnemyAndSelf:
|
||||||
|
{
|
||||||
|
Entity* entity = room->GetEntityByUniId(skill_target_id);
|
||||||
|
if (entity && entity->entity_type == ET_Player) {
|
||||||
|
Human* hum = (Human*)entity;
|
||||||
|
if (hum->team_id != team_id) {
|
||||||
|
target_list.insert(hum);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
target_list.insert(this);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user