Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[9826] Fix spell 38736

Signed-off-by: Lightguard <Lightguard@tauri.hu>
  • Loading branch information...
commit 4f08c35f3e9303b1e2ae8ce54f7b097a1a1af5ee 1 parent cf2d301
KiriX authored L1ghtGu4rd committed
2  sql/mangos.sql
@@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
24 24 `version` varchar(120) default NULL,
25 25 `creature_ai_version` varchar(120) default NULL,
26 26 `cache_id` int(10) default '0',
27   - `required_9803_01_mangos_spell_bonus_data` bit(1) default NULL
  27 + `required_9826_01_mangos_spell_script_target` bit(1) default NULL
28 28 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
29 29
30 30 --
4 sql/updates/9826_01_mangos_spell_script_target.sql
... ... @@ -0,0 +1,4 @@
  1 +ALTER TABLE db_version CHANGE COLUMN required_9803_01_mangos_spell_bonus_data required_9826_01_mangos_spell_script_target bit;
  2 +
  3 +DELETE FROM `spell_script_target` WHERE `entry` IN ('38736','38729');
  4 +INSERT INTO `spell_script_target` VALUES ('38736','1','22288'), ('38729','0','185191');
2  sql/updates/Makefile.am
@@ -55,6 +55,7 @@ pkgdata_DATA = \
55 55 9794_01_mangos_mangos_string.sql \
56 56 9794_02_mangos_command.sql \
57 57 9803_01_mangos_spell_bonus_data.sql \
  58 + 9826_01_mangos_spell_script_target.sql \
58 59 README
59 60
60 61 ## Additional files to include when running 'make dist'
@@ -90,4 +91,5 @@ EXTRA_DIST = \
90 91 9794_01_mangos_mangos_string.sql \
91 92 9794_02_mangos_command.sql \
92 93 9803_01_mangos_spell_bonus_data.sql \
  94 + 9826_01_mangos_spell_script_target.sql \
93 95 README
7 src/game/SpellAuras.cpp
@@ -2175,6 +2175,13 @@ void Aura::TriggerSpell()
2175 2175 case 33525:
2176 2176 target->CastSpell(target, trigger_spell_id, true, NULL, this, casterGUID);
2177 2177 return;
  2178 + // Rod of Purification - for quest 10839 (Veil Skith: Darkstone of Terokk)
  2179 + case 38736:
  2180 + {
  2181 + if(Unit* caster = GetCaster())
  2182 + caster->CastSpell(target, trigger_spell_id, true, NULL, this);
  2183 + return;
  2184 + }
2178 2185 // Beacon of Light
2179 2186 case 53563:
2180 2187 // original caster must be target (beacon)
2  src/shared/revision_nr.h
... ... @@ -1,4 +1,4 @@
1 1 #ifndef __REVISION_NR_H__
2 2 #define __REVISION_NR_H__
3   - #define REVISION_NR "9825"
  3 + #define REVISION_NR "9826"
4 4 #endif // __REVISION_NR_H__
2  src/shared/revision_sql.h
... ... @@ -1,6 +1,6 @@
1 1 #ifndef __REVISION_SQL_H__
2 2 #define __REVISION_SQL_H__
3 3 #define REVISION_DB_CHARACTERS "required_9767_03_characters_characters"
4   - #define REVISION_DB_MANGOS "required_9803_01_mangos_spell_bonus_data"
  4 + #define REVISION_DB_MANGOS "required_9826_01_mangos_spell_script_target"
5 5 #define REVISION_DB_REALMD "required_9748_01_realmd_realmlist"
6 6 #endif // __REVISION_SQL_H__

0 comments on commit 4f08c35

Please sign in to comment.
Something went wrong with that request. Please try again.