From 376788d761a2f06c7ceb6437fab801cee0c9abab Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 11 Feb 2009 21:40:07 +0100 Subject: *Turn off log spam. --HG-- branch : trunk --- src/bindings/scripts/include/sc_creature.cpp | 8 +++----- src/game/SpellAuras.cpp | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp index 48a3a1abbc7..ad266fb37c5 100644 --- a/src/bindings/scripts/include/sc_creature.cpp +++ b/src/bindings/scripts/include/sc_creature.cpp @@ -454,11 +454,9 @@ SpellEntry const* ScriptedAI::SelectSpell(Unit* Target, int32 School, int32 Mech return false; //Using the extended script system we first create a list of viable spells - SpellEntry const* Spell[4]; - Spell[0] = 0; - Spell[1] = 0; - Spell[2] = 0; - Spell[3] = 0; + SpellEntry const* Spell[CREATURE_MAX_SPELLS]; + for (uint8 i=0;iSetVisibleAura(slot, t_entry); } - sLog.outError("aura::_addaura slot:%d", slot); - AuraSlotEntry * entry; entry=m_target->GetVisibleAura(slot); if(!entry) -- cgit v1.2.3