Creature/script: Add area restriction for Freed Proto Drake

Closes #11754
Thanks to ariel-
This commit is contained in:
Killyana
2016-11-20 20:01:54 +01:00
parent 50d9a7494b
commit 3cc89c32d5
2 changed files with 8 additions and 0 deletions

View File

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

View File

@@ -281,6 +281,7 @@ public:
void UpdateAI(uint32 diff) override
{
VehicleAI::UpdateAI(diff);
events.Update(diff);
switch (events.ExecuteEvent())