Skip to content

Commit

Permalink
Sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
skittles1 committed Mar 2, 2015
1 parent c27a10e commit 16dd6c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions kod/object/active/holder/nomoveon/battler/monster.kod
Original file line number Diff line number Diff line change
Expand Up @@ -6513,6 +6513,7 @@ messages:
TargetSwitch(what=$, iHatred = 0)
{
if what = $
OR poOwner = $
{
Debug("BAD target we're switching to here!");

Expand Down
9 changes: 6 additions & 3 deletions kod/object/active/holder/room/monsroom/survivalroom.kod
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ messages:
{
if Nth(i,1) = GOAL_KILLS
{
Send(self,@AggroBosses);
Post(self,@AggroBosses);
}
if Nth(i,1) = GOAL_BOSS
{
Expand Down Expand Up @@ -960,7 +960,10 @@ messages:
else
{
% Aggro one mob on the player.
Send(self,@AggroOne,#who=(First(plParticipants)));
if plLevelGoals <> $
{
Send(self,@AggroOne,#who=(First(plParticipants)));
}
}
}
}
Expand Down Expand Up @@ -991,6 +994,7 @@ messages:
local oTarget, i, n, each_obj, count;

if plParticipants = $
OR plLevelGoals = $
{
return;
}
Expand Down Expand Up @@ -1024,7 +1028,6 @@ messages:
}
}
}

Send(each_obj,@TargetSwitch,#what=oTarget,#iHatred=100);
Send(each_obj,@EnterStateChase,#target=oTarget,#actnow=True);
}
Expand Down

0 comments on commit 16dd6c9

Please sign in to comment.