mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Misc/Battlefield:
* Fix faction for Wintergrasp Siege Turret * Add missing magic number
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- Wintergrasp Siege Turret
|
||||
UPDATE `creature_template` SET `faction_A`=1732,`faction_H`=1732 WHERE `entry`=28319; -- Alliance
|
||||
UPDATE `creature_template` SET `faction_A`=1735,`faction_H`=1735 WHERE `entry`=32629; -- Horde
|
||||
@@ -1473,17 +1473,17 @@ struct BfWGGameObjectBuilding
|
||||
|
||||
switch (m_Build->GetEntry())
|
||||
{
|
||||
case 190221:
|
||||
case 190373:
|
||||
case 190377:
|
||||
case 190378:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_1:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_2:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_3:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_4:
|
||||
{
|
||||
creature->setFaction(WintergraspFaction[m_WG->GetDefenderTeam()]);
|
||||
break;
|
||||
}
|
||||
case 190356:
|
||||
case 190357:
|
||||
case 190358:
|
||||
case GO_WINTERGRASP_SHADOWSIGHT_TOWER:
|
||||
case GO_WINTERGRASP_WINTER_S_EDGE_TOWER:
|
||||
case GO_WINTERGRASP_FLAMEWATCH_TOWER:
|
||||
{
|
||||
creature->setFaction(WintergraspFaction[m_WG->GetAttackerTeam()]);
|
||||
break;
|
||||
@@ -1509,17 +1509,17 @@ struct BfWGGameObjectBuilding
|
||||
|
||||
switch (m_Build->GetEntry())
|
||||
{
|
||||
case 190221:
|
||||
case 190373:
|
||||
case 190377:
|
||||
case 190378:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_1:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_2:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_3:
|
||||
case GO_WINTERGRASP_FORTRESS_TOWER_4:
|
||||
{
|
||||
creature->setFaction(WintergraspFaction[m_WG->GetDefenderTeam()]);
|
||||
break;
|
||||
}
|
||||
case 190356:
|
||||
case 190357:
|
||||
case 190358:
|
||||
case GO_WINTERGRASP_SHADOWSIGHT_TOWER:
|
||||
case GO_WINTERGRASP_WINTER_S_EDGE_TOWER:
|
||||
case GO_WINTERGRASP_FLAMEWATCH_TOWER:
|
||||
{
|
||||
creature->setFaction(WintergraspFaction[m_WG->GetAttackerTeam()]);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user