Core: Misc fixes
This commit is contained in:
@@ -94,7 +94,7 @@ namespace Game.Entities
|
||||
Relocate(pos);
|
||||
if (!IsPositionValid())
|
||||
{
|
||||
Log.outError(LogFilter.AreaTrigger, "AreaTrigger (spell {0}) not created. Invalid coordinates (X: {0} Y: {1})", spell.Id, GetPositionX(), GetPositionY());
|
||||
Log.outError(LogFilter.AreaTrigger, $"AreaTrigger (spell {spell.Id}) not created. Invalid coordinates (X: {GetPositionX()} Y: {GetPositionY()})");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -321,7 +321,7 @@ namespace Game.Entities
|
||||
{
|
||||
SpellInfo newInfo = Global.SpellMgr.GetSpellInfo(spellId);
|
||||
if (newInfo != null)
|
||||
return base.GetCastSpellInfo(newInfo);
|
||||
return GetCastSpellInfo(newInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2612,7 +2612,6 @@ namespace Game.Entities
|
||||
}
|
||||
}
|
||||
|
||||
// "the bodies of template functions must be made available in a header file"
|
||||
public void ApplySpellMod<T>(uint spellId, SpellModOp op, ref T basevalue, Spell spell = null)
|
||||
{
|
||||
SpellInfo spellInfo = Global.SpellMgr.GetSpellInfo(spellId);
|
||||
|
||||
Reference in New Issue
Block a user