Misc fixes

This commit is contained in:
hondacrx
2021-11-23 22:58:50 -05:00
parent 7d6f782dd1
commit 0160ab92a5
4 changed files with 3 additions and 15 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ namespace Game.Chat.Commands
return true;
}
handler.SendSysMessage(CypherStrings.CommandGoInstanceFailed, mapId, scriptname, exit.target_mapId);
handler.SendSysMessage(CypherStrings.CommandGoInstanceFailed, mapId, scriptname, exit != null ? exit.target_mapId : -1);
return false;
}
-12
View File
@@ -4240,20 +4240,8 @@ namespace Game.Spells
}
break;
case 36730: // Flame Strike
{
target.CastSpell(target, 36731, new CastSpellExtraArgs(this));
break;
}
case 44191: // Flame Strike
{
if (target.GetMap().IsDungeon())
{
uint spellId = (uint)(target.GetMap().IsHeroic() ? 46163 : 44190);
target.CastSpell(target, spellId, new CastSpellExtraArgs(this));
}
break;
}
case 43681: // Inactive
{
if (!target.IsTypeId(TypeId.Player) || aurApp.GetRemoveMode() != AuraRemoveMode.Expire)