[Bots & Mercs] Add Support for TrySympatheticProc (#2866)

* [Bots & Merrcs] Add Support for TrySympatheticProc

* [Bots & Merrcs] Add Support for TrySympatheticProc

* [Bots & Merrcs] Add Support for TrySympatheticProc

* Cleanup

* formatting

* auto
This commit is contained in:
Aeadoin
2023-02-13 01:16:18 -05:00
committed by GitHub
parent b3fd9dd88a
commit fc7c30977a
5 changed files with 31 additions and 29 deletions
+2 -2
View File
@@ -4661,7 +4661,7 @@ void Mob::TryTwincast(Mob *caster, Mob *target, uint32 spell_id)
return;
}
if (IsClient() || IsBot())
if (IsOfClientBot())
{
int focus = GetFocusEffect(focusTwincast, spell_id);
@@ -4955,7 +4955,7 @@ void Mob::TrySympatheticProc(Mob *target, uint32 spell_id)
if(target == nullptr || !IsValidSpell(spell_id) || !IsClient())
return;
uint16 focus_spell = CastToClient()->GetSympatheticFocusEffect(focusSympatheticProc,spell_id);
uint16 focus_spell = GetSympatheticFocusEffect(focusSympatheticProc,spell_id);
if(!IsValidSpell(focus_spell))
return;