Misc fixes

This commit is contained in:
hondacrx
2021-12-22 20:23:48 -05:00
parent c38509222c
commit 8510f01035
6 changed files with 26 additions and 4 deletions
@@ -3026,6 +3026,7 @@ namespace Game.Entities
{
m_shouldReacquireTarget = false;
m_suppressedTarget = ObjectGuid.Empty;
SetTarget(ObjectGuid.Empty);
m_suppressedOrientation = 0.0f;
}
+3
View File
@@ -68,6 +68,9 @@ namespace Game.Entities
// Register the pet for guid lookup
base.AddToWorld();
InitializeAI();
ZoneScript zoneScript = GetZoneScript() != null ? GetZoneScript() : GetInstanceScript();
if (zoneScript != null)
zoneScript.OnCreatureCreate(this);
}
// Prevent stuck pets when zoning. Pets default to "follow" when added to world
+6
View File
@@ -4251,6 +4251,12 @@ namespace Game.Entities
spellInfo.ProcChance = 10;
});
// Baron Rivendare (Stratholme) - Unholy Aura
ApplySpellFix(new [] { 17466, 17467 }, spellInfo =>
{
spellInfo.AttributesEx3 |= SpellAttr3.NoInitialAggro;
});
//
// FIRELANDS SPELLS
//
+1
View File
@@ -404,6 +404,7 @@ namespace Game
{
Fine = 0,
Fog = 1, // Used in some instance encounters.
Drizzle = 2,
LightRain = 3,
MediumRain = 4,
HeavyRain = 5,