Fixes creatures aggro range, Wrong check on pathpoints, and a crash when there is no unitCaster.

This commit is contained in:
hondacrx
2022-07-17 22:49:28 -04:00
parent abbd51bf8d
commit acb9db8891
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -3372,7 +3372,7 @@ namespace Game.Spells
return;
Unit unitCaster = m_caster.ToUnit();
if (unitCaster != null)
if (unitCaster == null)
return;
// successful cast of the initial autorepeat spell is moved to idle state so that it is not deleted as long as autorepeat is active