Skip to content

Commit b56cea1

Browse files
authored
Check if aura is a positive effect before trying to dispel it (#289)
1 parent 207dcaf commit b56cea1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

playerbot/PlayerbotAI.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5472,7 +5472,8 @@ bool PlayerbotAI::HasAuraToDispel(Unit* target, uint32 dispelType)
54725472
uint32 spellId = entry->Id;
54735473

54745474
bool isPositiveSpell = IsPositiveSpell(spellId);
5475-
if (isPositiveSpell && isFriend)
5475+
bool isPositiveAuraEffect = IsPositiveAuraEffect(entry, aura->GetEffIndex());
5476+
if ((isPositiveSpell || isPositiveAuraEffect) && isFriend)
54765477
continue;
54775478

54785479
if (!isPositiveSpell && !isFriend)

0 commit comments

Comments
 (0)