Show
Ignore:
Timestamp:
11/19/08 13:36:29 (17 years ago)
Author:
yumileroy
Message:

[svn] Fix a crash caused by gruul script.
Change in EffectSummonWild? and DoZoneInCombat?.

Original author: megamage
Date: 2008-10-24 17:37:40-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/include/sc_creature.cpp

    r69 r106  
    459459    } 
    460460 
    461     if (!pUnit->CanHaveThreatList() || pUnit->getThreatManager().isThreatListEmpty()) 
     461    /*if (!pUnit->CanHaveThreatList() || pUnit->getThreatManager().isThreatListEmpty()) 
    462462    { 
    463463        error_log("SD2: DoZoneInCombat called for creature that either cannot have threat list or has empty threat list (pUnit entry = %d)", pUnit->GetTypeId() == TYPEID_UNIT ? ((Creature*)pUnit)->GetEntry() : 0); 
    464  
    465         return; 
    466     } 
     464        return; 
     465    }*/ 
    467466 
    468467    InstanceMap::PlayerList const &PlayerList = ((InstanceMap*)map)->GetPlayers(); 
     
    470469    for (i = PlayerList.begin(); i != PlayerList.end(); ++i) 
    471470    { 
    472         if(!(*i)->isGameMaster()) 
     471        if((*i)->isAlive()) 
    473472            pUnit->AddThreat(*i, 0.0f); 
    474473    }