Skip to content

Commit ac4cfad

Browse files
authored
Fix for Bot Aura Checks buf (#272)
1 parent 2ec8982 commit ac4cfad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/Bots/playerbot/PlayerbotAI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,9 +1008,9 @@ bool PlayerbotAI::HasAura(string name, Unit* unit)
10081008
}
10091009

10101010
uint32 spellId = aiObjectContext->GetValue<uint32>("spell id", name)->Get();
1011-
if (spellId)
1011+
if (spellId && HasAura(spellId, unit))
10121012
{
1013-
return HasAura(spellId, unit);
1013+
return true;
10141014
}
10151015

10161016
wstring wnamepart;

0 commit comments

Comments
 (0)