mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
Correct bot checks for ST_GroupClientAndPet
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user