mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
miscs(spell): paladin, rogue poison, shaman totem
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user