Misc Fixes

This commit is contained in:
hondacrx
2021-01-08 20:45:13 -05:00
parent 21edaf9993
commit 65855d1f22
8 changed files with 56 additions and 47 deletions
+4 -4
View File
@@ -938,11 +938,11 @@ namespace Game.AI
Creature creature = target.ToCreature();
if (creature != null)
{
SmartAI smartAI = (SmartAI)creature.GetAI();
if (smartAI != null)
CreatureAI smartAI = creature.GetAI();
if (smartAI != null && smartAI is SmartAI)
{
smartAI.SetDespawnTime(respawnDelay);
smartAI.StartDespawn();
((SmartAI)smartAI).SetDespawnTime(respawnDelay);
((SmartAI)smartAI).StartDespawn();
}
else
creature.DespawnOrUnsummon(respawnDelay);