Changeset 9 for trunk/src/game/BattleGroundEY.cpp
- Timestamp:
- 11/19/08 13:22:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/BattleGroundEY.cpp
r2 r9 54 54 { 55 55 m_Events |= 0x01; 56 57 // setup here, only when at least one player has ported to the map 58 if(!SetupBattleGround()) 59 { 60 EndNow(); 61 return; 62 } 56 63 57 64 SpawnBGObject(BG_EY_OBJECT_DOOR_A, RESPAWN_IMMEDIATELY); … … 573 580 void BattleGroundEY::EventPlayerDroppedFlag(Player *Source) 574 581 { 575 // Drop allowed in any BG state 582 if(GetStatus() != STATUS_IN_PROGRESS) 583 { 584 // if not running, do not cast things at the dropper player, neither send unnecessary messages 585 // just take off the aura 586 if(IsFlagPickedup() && GetFlagPickerGUID() == Source->GetGUID()) 587 { 588 SetFlagPicker(0); 589 Source->RemoveAurasDueToSpell(BG_EY_NETHERSTORM_FLAG_SPELL); 590 } 591 return; 592 } 576 593 577 594 if(!IsFlagPickedup())