Fixed some errors from analyzer

This commit is contained in:
hondacrx
2017-06-22 17:02:27 -04:00
parent 0e40e90a11
commit d538acc979
26 changed files with 38 additions and 46 deletions
@@ -368,7 +368,7 @@ namespace Scripts.Northrend.IcecrownCitadel
public SlotInfo(uint _entry, float x, float y, float z, float o, uint _cooldown)
{
Entry = _entry;
TargetPosition = new Position(x, y, z);
TargetPosition = new Position(x, y, z, o);
Cooldown = _cooldown;
}
public SlotInfo(uint _entry, Position pos, uint _cooldown)
@@ -85,7 +85,7 @@ namespace Scripts.Northrend.IcecrownCitadel
if (player.IsInCombat())
{
SpellInfo spell = Global.SpellMgr.GetSpellInfo(TeleporterSpells.FROZEN_THRONE_TELEPORT);
if (spell == null)
if (spell != null)
{
ObjectGuid castId = ObjectGuid.Create(HighGuid.Cast, SpellCastSource.Normal, player.GetMapId(), spell.Id, player.GetMap().GenerateLowGuid(HighGuid.Cast));
Spell.SendCastResult(player, spell, 0, castId, SpellCastResult.AffectingCombat);
+2 -1
View File
@@ -1147,7 +1147,8 @@ namespace Scripts.Spells.Druid
void SetTargets(List<WorldObject> targets)
{
targets = _targets;
targets.Clear();
targets .AddRange(_targets);
}
public override void Register()