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 | } |