Core: Misc fixes

This commit is contained in:
hondacrx
2018-05-26 13:09:46 -04:00
parent 3f7f1a7356
commit f7e557ab71
5 changed files with 12 additions and 7 deletions
@@ -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;
}
+1 -2
View File
@@ -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);