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

[svn] -enabled instantiated battlegrounds
-enabled arena matches
-rewritten battleground queuing to support joining as group
-removed queue announcements

Original author: w12x
Date: 2008-10-05 08:48:32-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/BattleGroundEY.cpp

    r2 r9  
    5454        { 
    5555            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            } 
    5663 
    5764            SpawnBGObject(BG_EY_OBJECT_DOOR_A, RESPAWN_IMMEDIATELY); 
     
    573580void BattleGroundEY::EventPlayerDroppedFlag(Player *Source) 
    574581{ 
    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    } 
    576593 
    577594    if(!IsFlagPickedup())