diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index a9902e8fa..55739dda2 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1955,26 +1955,19 @@ bool Creature::LoadCreatureAddon(bool reload) if (cainfo->splineFlags & SPLINEFLAG_FLYING) SetLevitate(true); - if(cainfo->auras) + if (cainfo->auras) { for (uint32 const* cAura = cainfo->auras; *cAura; ++cAura) { - SpellEntry const *AdditionalSpellInfo = sSpellStore.LookupEntry(*cAura); - if (!AdditionalSpellInfo) - { - sLog.outErrorDb("Creature (GUIDLow: %u Entry: %u ) has wrong spell %u defined in `auras` field.",GetGUIDLow(),GetEntry(), *cAura); - continue; - } - if (HasAura(*cAura)) { if (!reload) - sLog.outErrorDb("Creature (GUIDLow: %u Entry: %u) has duplicate spell %u in `auras` field.", GetGUIDLow(), GetEntry(), *cAura); + sLog.outErrorDb("Creature (GUIDLow: %u Entry: %u) has spell %u in `auras` field, but aura is already applied.", GetGUIDLow(), GetEntry(), *cAura); continue; } - CastSpell(this, AdditionalSpellInfo, true); + CastSpell(this, *cAura, true); } } return true; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 921f32ec9..841557cd5 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11816" + #define REVISION_NR "11817" #endif // __REVISION_NR_H__