mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-02-21 10:20:12 +00:00
Fix self recall
This commit is contained in:
parent
9312706524
commit
eaebe3ba4c
@ -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) {
|
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) {
|
if(skill->targetType == SkillTargetType::GROUP) {
|
||||||
// group
|
// group
|
||||||
if(count != 1 || ids[0] != src->getID()) {
|
if(count != 1 || ids[0] != src->getID()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user