Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/DungeonFinding/LFGMgr.cpp src/server/scripts/Spells/spell_paladin.cpp
This commit is contained in:
@@ -510,9 +510,9 @@ class spell_gen_bonked : public SpellScriptLoader
|
||||
target->CastSpell(target, SPELL_FOAM_SWORD_DEFEAT, true);
|
||||
target->RemoveAurasDueToSpell(SPELL_BONKED);
|
||||
|
||||
if (Aura const* aura = target->GetAura(SPELL_ON_GUARD))
|
||||
if (Aura const* auraOnGuard = target->GetAura(SPELL_ON_GUARD))
|
||||
{
|
||||
if (Item* item = target->GetItemByGuid(aura->GetCastItemGUID()))
|
||||
if (Item* item = target->GetItemByGuid(auraOnGuard->GetCastItemGUID()))
|
||||
target->DestroyItemCount(item->GetEntry(), 1, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user