Correct bot checks for ST_GroupClientAndPet

This commit is contained in:
nytmyr
2024-12-10 14:00:17 -06:00
parent 70fe633d5b
commit 746bccf4fd
+13
View File
@@ -2307,6 +2307,19 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
if(GetOwner())
group_id_caster = (GetRaid()->GetGroup(GetOwner()->CastToClient()) == 0xFFFF) ? 0 : (GetRaid()->GetGroup(GetOwner()->CastToClient()) + 1);
}
if (IsGrouped())
{
if (Group* group = GetGroup()) {
group_id_caster = group->GetID();
}
}
else if (IsRaidGrouped())
{
if (Raid* raid = GetRaid()) {
uint32 group_id = raid->GetGroup(GetName());
group_id_caster = (group_id == 0xFFFFFFFF) ? 0 : (group_id + 1);
}
}
}
if(spell_target->IsClient())