Misc fixes

This commit is contained in:
hondacrx
2022-05-24 13:20:05 -04:00
parent 3c8c31ecd7
commit c3e8791aac
8 changed files with 18 additions and 143 deletions
+2 -2
View File
@@ -1403,8 +1403,8 @@ namespace Game.AI
break;
// Set the timer to 1 ms so the path will be resumed on next update loop
if (((SmartAI)_me.GetAI()).CanResumePath())
((SmartAI)_me.GetAI()).SetWPPauseTimer(1);
if (_me.GetAI<SmartAI>().CanResumePath())
_me.GetAI<SmartAI>().SetWPPauseTimer(1);
break;
}
case SmartActions.SetOrientation:
+1 -1
View File
@@ -105,7 +105,7 @@ namespace Game.Chat
player.GetPosition(out x, out y, out z);
handler.SendSysMessage("{0:D4}{1:D2}{2:D2}.mmtile", player.GetMapId(), gy, gx);
handler.SendSysMessage("gridloc [{0}, {1}]", gx, gy);
handler.SendSysMessage("tileloc [{0}, {1}]", gx, gy);
// calculate navmesh tile location
uint terrainMapId = PhasingHandler.GetTerrainMapId(player.GetPhaseShift(), player.GetMap(), x, y);
+1 -1
View File
@@ -187,7 +187,7 @@ namespace Game.Chat
return true;
}
[CommandNonGroup("additemset", RBACPermissions.CommandAdditemset)]
[CommandNonGroup("additem set", RBACPermissions.CommandAdditemset)]
static bool HandleAddItemSetCommand(CommandHandler handler, StringArguments args)
{
if (args.Empty())
+8
View File
@@ -4328,6 +4328,14 @@ namespace Game.Entities
spellInfo.NegativeEffects[2] = true;
});
// Headless Horseman Climax - Return Head (Hallow End)
// Headless Horseman Climax - Body Regen (confuse only - removed on death)
// Headless Horseman Climax - Head Is Dead
ApplySpellFix(new[] { 42401, 43105, 42428 }, spellInfo =>
{
spellInfo.Attributes |= SpellAttr0.UnaffectedByInvulnerability;
});
foreach (var spellInfo in mSpellInfoMap.Values)
{
// Fix range for trajectory triggered spell