Index: src/game/Creature.cpp =================================================================== --- src/game/Creature.cpp (revision 4812) +++ src/game/Creature.cpp (working copy) @@ -1748,17 +1748,31 @@ SetUInt32Value(UNIT_NPC_EMOTESTATE, cainfo->emote); // Now add the auras, format "spellid effectindex spellid effectindex..." - std::string auras = cainfo->auras; - Tokens auravals; - auravals = StrSplit(auras, " "); - if ( auravals.size()>0 && (auravals.size()%2)>0 ) - sLog.outErrorDb("Creature (GUIDLow: %u Entry: %u ) has wrong aura defined.",GetGUIDLow(),GetEntry()); + char *p,*s; + int val[15],i=0; + s=p=cainfo->auras; + while (p[0]!=0) + { + p++; + if (p[0]==' ') + { + val[i++]=atoi(s); + p[0]=0; + s=++p; + } + if (i>13) + break; + } + if (p!=s) + val[i++]=atoi(s); + if (i && i%2) + sLog.outErrorDb("Creature (GUIDLow: %u Entry: %u ) has wrong aura defined.",GetGUIDLow(),GetEntry()); else { - for (int i=0;i2 ) { sLog.outErrorDb("Creature (GUIDLow: %u Entry: %u ) has wrong effect %u for spell %u.",GetGUIDLow(),GetEntry(),effect,spellId);