Fix self recall

This commit is contained in:
gsemaj 2023-07-11 20:21:37 -04:00
parent cd908666af
commit 33396f8d28
No known key found for this signature in database
GPG Key ID: 24B96BAA40497929
1 changed files with 3 additions and 0 deletions

View File

@ -283,6 +283,9 @@ static std::vector<ICombatant*> entityRefsToCombatants(std::vector<EntityRef> re
std::vector<ICombatant*> Abilities::matchTargets(ICombatant* src, SkillData* skill, int count, int32_t *ids) {
if(skill->effectTarget == SkillEffectTarget::SELF)
return {src}; // client sends 0 targets for certain self-targeting skills (recall)
if(skill->targetType == SkillTargetType::GROUP) {
// group
if(count != 1 || ids[0] != src->getID()) {