Core/Spells: CastSpell Cleanup

Port From (https://github.com/TrinityCore/TrinityCore/commit/)
This commit is contained in:
hondacrx
2021-04-18 18:42:11 -04:00
parent b1ea7212f3
commit d0faa12ef6
45 changed files with 775 additions and 632 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ namespace Game.Chat
float x, y, z;
handler.GetSession().GetPlayer().GetClosePoint(out x, out y, out z, dist);
handler.GetSession().GetPlayer().CastSpell(x, y, z, spellId, triggered);
handler.GetSession().GetPlayer().CastSpell(new Position(x, y, z), spellId, new CastSpellExtraArgs(triggered));
return true;
}
@@ -221,7 +221,7 @@ namespace Game.Chat
bool triggered = (triggeredStr != null);
caster.CastSpell(x, y, z, spellId, triggered);
caster.CastSpell(new Position(x, y, z), spellId, new CastSpellExtraArgs(triggered));
return true;
}