Misc fixes

This commit is contained in:
hondacrx
2022-02-28 13:28:57 -05:00
parent c82e78d4cb
commit 561b5a528d
4 changed files with 11 additions and 24 deletions
@@ -665,8 +665,7 @@ namespace Game.Entities
Unit target;
// @todo this hack with search required until GO casting not implemented
Unit owner = GetOwner();
if (owner)
if (GetOwner() != null)
{
// Hunter trap: Search units which are unfriendly to the trap's owner
var checker = new NearestAttackableNoTotemUnitInObjectRangeCheck(this, radius);