This commit is contained in:
badcaptain 2013-03-14 23:03:39 -04:00
commit e12b06a9ad
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50)
-------------------------------------------------------
== 03/14/2013 ==
JJ: (NatedogEZ) Fix for hate list random never selecting last member of hate list.
Bad_Captain: Fixed Merc spell recast timers.
Bad_Captain: Changed how Mercs add mobs to their hate lists (should prevent IsEngaged() issues).
Bad_Captain: Initial Caster DPS Merc spell casting AI, including initial Merc stance implementation.

View File

@ -439,7 +439,7 @@ Mob *HateList::GetRandom()
int random = MakeRandomInt(0, count-1);
iterator.Reset();
for (int i = 0; i < random-1; i++)
for (int i = 0; i < random; i++)
iterator.Advance();
return iterator.GetData()->ent;
}