diff options
| author | Killyana <morphone1@gmail.com> | 2017-11-26 17:40:42 +0100 |
|---|---|---|
| committer | Killyana <morphone1@gmail.com> | 2017-11-26 17:40:42 +0100 |
| commit | 00e3023b3263d5743e0df09118bab4b28bfd3608 (patch) | |
| tree | 68f105f3d65ada77e5c688b542e81f215bd34fcc | |
| parent | a2b191c78e28916346e6d8d43336e737ef2d3606 (diff) | |
DB/Creature: Scourging Crystal
And fix spell script spell_q11396_11399_scourging_crystal_controller
Closes #17596
| -rw-r--r-- | sql/updates/world/3.3.5/2017_11_26_00_world.sql | 4 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sql/updates/world/3.3.5/2017_11_26_00_world.sql b/sql/updates/world/3.3.5/2017_11_26_00_world.sql new file mode 100644 index 00000000000..d3c9f7b192d --- /dev/null +++ b/sql/updates/world/3.3.5/2017_11_26_00_world.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=24464 AND `id`=2; +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(24464,0,2,0,11,0,100,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Scourging Crystal - On Respawn - Set Reactstate Passive'); diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index 7cc32340665..874fb45638c 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -317,7 +317,7 @@ class spell_q11396_11399_scourging_crystal_controller : public SpellScriptLoader void HandleDummy(SpellEffIndex /*effIndex*/) { - if (Unit* target = GetExplTargetUnit()) + if (Unit* target = GetHitUnit()) if (target->GetTypeId() == TYPEID_UNIT && target->HasAura(SPELL_FORCE_SHIELD_ARCANE_PURPLE_X3)) // Make sure nobody else is channeling the same target if (!target->HasAura(SPELL_SCOURGING_CRYSTAL_CONTROLLER)) |
