diff --git a/doc/EventAI.txt b/doc/EventAI.txt index 3b4436832..f1cbd540f 100644 --- a/doc/EventAI.txt +++ b/doc/EventAI.txt @@ -531,7 +531,7 @@ Parameter 1: CreatureID - The Creature Template ID to be Summoned. The value her Parameter 2: Target - The Target Type defining who the Summoned creature will attack once spawned. The value in this field needs to be a valid Target Type as specified in the reference tables below. Parameter 3: Duration - The duration until the summoned creature should be unsummoned AFTER Combat ends. The value in this field is in milliseconds or 0. -The NPC will Summon another ccast flag 0 will work for you treature at the same spot as itself that will attack the specified target. +The NPC will Summon another cast flag 0 will work for you treature at the same spot as itself that will attack the specified target. NOTE: Almost all Creature Summons have proper Summon Spells that should be used when possible. This Action is a powerful last resort option only to be used if nothing else works. NOTE: Using Target Type 0 will cause the Summoned creature to not attack anyone. NOTE: If Duration is set at 0, then the summoned creature will not despawn until it has died. diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 41f1204d0..1fd0d4d2f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5696,8 +5696,12 @@ FactionTemplateEntry const* Unit::getFactionTemplateEntry() const if (GetObjectGuid() != guid) { - sLog.outError("%s have invalid faction (faction template id) #%u", GetGuidStr().c_str(), getFaction()); guid = GetObjectGuid(); + + if (guid.GetHigh() == HIGHGUID_PET) + sLog.outError("%s (base creature entry %u) have invalid faction template id %u, owner %s", GetGuidStr().c_str(), GetEntry(), getFaction(), ((Pet*)this)->GetOwnerGuid().GetString().c_str()); + else + sLog.outError("%s have invalid faction template id %u", GetGuidStr().c_str(), getFaction()); } } return entry; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4701f0e43..f81908cdf 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 "12123" + #define REVISION_NR "12124" #endif // __REVISION_NR_H__