Misc fixes, and added GetDebugInfo() which was missed.
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user