Misc fixes, and added GetDebugInfo() which was missed.

This commit is contained in:
hondacrx
2022-01-05 13:11:32 -05:00
parent b2ddeb3408
commit 0d68984717
28 changed files with 170 additions and 53 deletions
+4
View File
@@ -2285,6 +2285,10 @@ namespace Game.Spells
}
}
public virtual string GetDebugInfo()
{
return $"Id: {GetId()} Name: '{GetSpellInfo().SpellName[Global.WorldMgr.GetDefaultDbcLocale()]}' Caster: {GetCasterGUID()}\nOwner: {(GetOwner() != null ? GetOwner().GetDebugInfo() : "NULL")}";
}
#endregion
public SpellInfo GetSpellInfo() { return m_spellInfo; }
+5
View File
@@ -7350,6 +7350,11 @@ namespace Game.Spells
m_caster.ToUnit().GetSpellHistory().CancelGlobalCooldown(m_spellInfo);
}
string GetDebugInfo()
{
return $"Id: {GetSpellInfo().Id} Name: '{GetSpellInfo().SpellName[Global.WorldMgr.GetDefaultDbcLocale()]}' OriginalCaster: {m_originalCasterGUID} State: {GetState()}";
}
List<SpellScript> m_loadedScripts = new();
int CalculateDamage(SpellEffectInfo spellEffectInfo, Unit target)
+9
View File
@@ -4266,6 +4266,15 @@ namespace Game.Entities
spellInfo.AttributesEx2 |= SpellAttr2.CanTargetDead;
});
// Soul Sickness (Forge of Souls)
ApplySpellFix(new[] { 69131 }, spellInfo =>
{
ApplySpellEffectFix(spellInfo, 1, spellEffectInfo =>
{
spellEffectInfo.ApplyAuraName = AuraType.ModDecreaseSpeed;
});
});
//
// FIRELANDS SPELLS
//