miscs(spell): paladin, rogue poison, shaman totem

This commit is contained in:
Yunfan Li
2023-06-11 18:21:45 +08:00
parent 33576bd969
commit e7ad355396
10 changed files with 48 additions and 24 deletions

View File

@@ -1882,7 +1882,7 @@ bool PlayerbotAI::CanCastSpell(uint32 spellid, Unit* target, bool checkHasSpell,
}
}
ObjectGuid oldSel = bot->GetSelectedUnit()->GetGUID();
Unit* oldSel = bot->GetSelectedUnit();
Spell* spell = new Spell(bot, spellInfo, TRIGGERED_NONE);
spell->m_targets.SetUnitTarget(target);
@@ -1901,7 +1901,7 @@ bool PlayerbotAI::CanCastSpell(uint32 spellid, Unit* target, bool checkHasSpell,
}
if (oldSel)
bot->SetSelection(oldSel);
bot->SetSelection(oldSel->GetGUID());
switch (result)
{