Changes so that blind effects like those in Flash of Light work.

This commit is contained in:
Paul Coene
2014-09-27 13:00:07 -04:00
parent 1170b57fd5
commit 73a23e9f9d
5 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -1039,7 +1039,7 @@ void Mob::AI_Process() {
// Begin: Additions for Wiz Fear Code
//
if(RuleB(Combat, EnableFearPathing)){
if(curfp) {
if(curfp || (is_blind && !CombatRange(hate_list.GetClosest(this)))) {
if(IsRooted()) {
//make sure everybody knows were not moving, for appearance sake
if(IsMoving())
@@ -1087,7 +1087,7 @@ void Mob::AI_Process() {
if (engaged)
{
if (IsRooted())
if (IsRooted() || is_blind)
SetTarget(hate_list.GetClosest(this));
else
{