[9125] Add dummy effect of spell 46167

SQL update included to ensure proper work (if database has existing data)

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
frcoun 2010-01-08 00:18:34 +01:00 committed by NoFantasy
parent 1e23c2c576
commit 352c3811b2
6 changed files with 12 additions and 4 deletions

View file

@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL,
`cache_id` int(10) default '0',
`required_9121_01_mangos_npc_spellclick_spells` bit(1) default NULL
`required_9125_01_mangos_npc_spellclick_spells` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--

View file

@ -0,0 +1,4 @@
ALTER TABLE db_version CHANGE COLUMN required_9121_01_mangos_npc_spellclick_spells required_9125_01_mangos_npc_spellclick_spells bit;
UPDATE npc_spellclick_spells SET cast_flags=1 WHERE spell_id=46167;
DELETE FROM npc_spellclick_spells WHERE spell_id=46773;

View file

@ -1,4 +1,4 @@
# Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
# Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -226,6 +226,7 @@ pkgdata_DATA = \
9074_01_mangos_command.sql \
9095_01_mangos_command.sql \
9121_01_mangos_npc_spellclick_spells.sql \
9125_01_mangos_npc_spellclick_spells.sql \
README
## Additional files to include when running 'make dist'
@ -432,4 +433,5 @@ EXTRA_DIST = \
9074_01_mangos_command.sql \
9095_01_mangos_command.sql \
9121_01_mangos_npc_spellclick_spells.sql \
9125_01_mangos_npc_spellclick_spells.sql \
README

View file

@ -1175,6 +1175,7 @@ void Spell::EffectDummy(uint32 i)
return;
}
case 46167: // Planning for the Future: Create Snowfall Glade Pup Cover
case 50926: // Gluttonous Lurkers: Create Zul'Drak Rat Cover
case 51026: // Create Drakkari Medallion Cover
case 51592: // Pickup Primordial Hatchling
@ -1187,6 +1188,7 @@ void Spell::EffectDummy(uint32 i)
switch(m_spellInfo->Id)
{
case 46167: spellId = 46773; break;
case 50926: spellId = 50927; break;
case 51026: spellId = 50737; break;
case 51592: spellId = 51593; break;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9124"
#define REVISION_NR "9125"
#endif // __REVISION_NR_H__

View file

@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_CHARACTERS "required_8874_01_characters_character_skills"
#define REVISION_DB_MANGOS "required_9121_01_mangos_npc_spellclick_spells"
#define REVISION_DB_MANGOS "required_9125_01_mangos_npc_spellclick_spells"
#define REVISION_DB_REALMD "required_9010_01_realmd_realmlist"
#endif // __REVISION_SQL_H__