aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKillyana <morphone1@gmail.com>2016-11-20 20:01:54 +0100
committerjoschiwald <joschiwald.trinity@gmail.com>2018-02-11 12:19:48 +0100
commitbc23d8c892e96bb850fc2ed9a9e4e8a87b2e157f (patch)
tree533be9acc9464229ef39a09f5d606033b69dee5f
parent44a91e0230b85abc408772aa0ff6079a324d03ae (diff)
Creature/script: Add area restriction for Freed Proto Drake
Closes #11754 Thanks to ariel- (cherry picked from commit 3cc89c32d551baf8fbc0c4787b79d7e2f7bde2bd)
-rw-r--r--sql/updates/world/master/2018_02_11_01_world_2016_11_20_01_world.sql7
-rw-r--r--src/server/scripts/Northrend/zone_storm_peaks.cpp1
2 files changed, 8 insertions, 0 deletions
diff --git a/sql/updates/world/master/2018_02_11_01_world_2016_11_20_01_world.sql b/sql/updates/world/master/2018_02_11_01_world_2016_11_20_01_world.sql
new file mode 100644
index 00000000000..e93887bedc7
--- /dev/null
+++ b/sql/updates/world/master/2018_02_11_01_world_2016_11_20_01_world.sql
@@ -0,0 +1,7 @@
+--
+DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId`=16 AND `SourceEntry`=29709);
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
+(16,0,29709,0,0,23,0,4422,0,0,0,0,'','Dismount player when not in intended zone'),
+(16,0,29709,0,1,23,0,4535,0,0,0,0,'','Dismount player when not in intended zone'),
+(16,0,29709,0,2,23,0,4437,0,0,0,0,'','Dismount player when not in intended zone'),
+(16,0,29709,0,3,23,0,4438,0,0,0,0,'','Dismount player when not in intended zone');
diff --git a/src/server/scripts/Northrend/zone_storm_peaks.cpp b/src/server/scripts/Northrend/zone_storm_peaks.cpp
index 293e42b671a..acc41939d32 100644
--- a/src/server/scripts/Northrend/zone_storm_peaks.cpp
+++ b/src/server/scripts/Northrend/zone_storm_peaks.cpp
@@ -284,6 +284,7 @@ public:
void UpdateAI(uint32 diff) override
{
+ VehicleAI::UpdateAI(diff);
events.Update(diff);
switch (events.ExecuteEvent())