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/BattleGroundWS.cpp

    r2 r9  
    5050            m_Events |= 0x01; 
    5151 
     52            // setup here, only when at least one player has ported to the map 
     53            if(!SetupBattleGround()) 
     54            { 
     55                EndNow(); 
     56                return; 
     57            } 
     58 
    5259            for(uint32 i = BG_WS_OBJECT_DOOR_A_1; i <= BG_WS_OBJECT_DOOR_H_4; i++) 
    5360            { 
     
    286293void BattleGroundWS::EventPlayerDroppedFlag(Player *Source) 
    287294{ 
    288     // Drop allowed in any BG state 
     295    if(GetStatus() != STATUS_IN_PROGRESS) 
     296    { 
     297        // if not running, do not cast things at the dropper player (prevent spawning the "dropped" flag), neither send unnecessary messages 
     298        // just take off the aura 
     299        if(Source->GetTeam() == ALLIANCE) 
     300        { 
     301            if(!this->IsHordeFlagPickedup()) 
     302                return; 
     303            if(GetHordeFlagPickerGUID() == Source->GetGUID()) 
     304            { 
     305                SetHordeFlagPicker(0); 
     306                Source->RemoveAurasDueToSpell(BG_WS_SPELL_WARSONG_FLAG); 
     307            } 
     308        } 
     309        else 
     310        { 
     311            if(!this->IsAllianceFlagPickedup()) 
     312                return; 
     313            if(GetAllianceFlagPickerGUID() == Source->GetGUID()) 
     314            { 
     315                SetAllianceFlagPicker(0); 
     316                Source->RemoveAurasDueToSpell(BG_WS_SPELL_SILVERWING_FLAG); 
     317            } 
     318        } 
     319        return; 
     320    } 
    289321 
    290322    const char *message = "";