Changeset 106 for trunk/src/bindings/scripts/include/sc_creature.cpp
- Timestamp:
- 11/19/08 13:36:29 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/include/sc_creature.cpp
r69 r106 459 459 } 460 460 461 if (!pUnit->CanHaveThreatList() || pUnit->getThreatManager().isThreatListEmpty())461 /*if (!pUnit->CanHaveThreatList() || pUnit->getThreatManager().isThreatListEmpty()) 462 462 { 463 463 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 }*/ 467 466 468 467 InstanceMap::PlayerList const &PlayerList = ((InstanceMap*)map)->GetPlayers(); … … 470 469 for (i = PlayerList.begin(); i != PlayerList.end(); ++i) 471 470 { 472 if( !(*i)->isGameMaster())471 if((*i)->isAlive()) 473 472 pUnit->AddThreat(*i, 0.0f); 474 473 }