From eaebe3ba4c75517a17cdc246fb9ff0aaeda74a01 Mon Sep 17 00:00:00 2001 From: gsemaj Date: Tue, 11 Jul 2023 20:21:37 -0400 Subject: [PATCH] Fix self recall --- src/Abilities.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Abilities.cpp b/src/Abilities.cpp index ed29699..b84e629 100644 --- a/src/Abilities.cpp +++ b/src/Abilities.cpp @@ -283,6 +283,9 @@ static std::vector entityRefsToCombatants(std::vector re std::vector 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()) {