Changeset 203 for trunk/src/game/Player.cpp
- Timestamp:
- 11/19/08 13:45:59 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Player.cpp
r200 r203 16407 16407 // send data at target visibility change (adding to client) 16408 16408 if((*i)!=this && (*i)->isType(TYPEMASK_UNIT)) 16409 { 16409 16410 SendAuraDurationsForTarget(*i); 16411 //if(((Unit*)(*i))->isAlive()) //should be always alive 16412 { 16413 if((*i)->GetTypeId()==TYPEID_UNIT) 16414 ((Creature*)(*i))->SendMonsterMoveWithSpeedToCurrentDestination(this); 16415 if(((Unit*)(*i))->getVictim()) 16416 ((Unit*)(*i))->SendAttackStart(((Unit*)(*i))->getVictim()); 16417 } 16418 } 16410 16419 16411 16420 i = stealthedUnits.erase(i); … … 17387 17396 // send data at target visibility change (adding to client) 17388 17397 if(target!=this && target->isType(TYPEMASK_UNIT)) 17398 { 17389 17399 SendAuraDurationsForTarget((Unit*)target); 17390 17391 if(target->GetTypeId()==TYPEID_UNIT && ((Creature*)target)->isAlive()) 17392 ((Creature*)target)->SendMonsterMoveWithSpeedToCurrentDestination(this); 17400 if(((Unit*)target)->isAlive()) 17401 { 17402 if(target->GetTypeId()==TYPEID_UNIT) 17403 ((Creature*)target)->SendMonsterMoveWithSpeedToCurrentDestination(this); 17404 if(((Unit*)target)->getVictim()) 17405 ((Unit*)target)->SendAttackStart(((Unit*)target)->getVictim()); 17406 } 17407 } 17393 17408 } 17394 17409 }