mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
fix(Core/BattlefieldWG): Workshops/Graveyard not changing to neutral (#14002)
This commit is contained in:
@@ -1474,6 +1474,17 @@ struct WGWorkshop
|
||||
// Send warning message to all player to inform a faction attack to a workshop
|
||||
// alliance / horde attacking a workshop
|
||||
bf->SendWarning(teamControl ? WorkshopsData[workshopId].attackText : (WorkshopsData[workshopId].attackText + 2));
|
||||
|
||||
// Updating worldstate, update icon to neutral
|
||||
state = BATTLEFIELD_WG_OBJECTSTATE_NEUTRAL_INTACT;
|
||||
bf->SendUpdateWorldState(WorkshopsData[workshopId].worldstate, state);
|
||||
|
||||
// Found associate graveyard and update it
|
||||
if (workshopId < BATTLEFIELD_WG_WORKSHOP_KEEP_WEST)
|
||||
if (bf->GetGraveyardById(workshopId))
|
||||
bf->GetGraveyardById(workshopId)->GiveControlTo(team);
|
||||
|
||||
teamControl = team;
|
||||
break;
|
||||
}
|
||||
case TEAM_ALLIANCE:
|
||||
|
||||
@@ -1193,6 +1193,8 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
|
||||
return spellId == 56618;
|
||||
else if (team == TEAM_ALLIANCE)
|
||||
return spellId == 56617;
|
||||
else
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Hellscream's Warsong
|
||||
|
||||
Reference in New Issue
Block a user