Misc/Battlefield:

* Fix faction for Wintergrasp Siege Turret
* Add missing magic number
This commit is contained in:
Vincent-Michael
2012-08-25 01:29:03 +02:00
parent 2041ff2562
commit c61ce54f03
2 changed files with 17 additions and 14 deletions

View File

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

View File

@@ -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;