Skip to content

Commit

Permalink
[9978] Add explicit AP damage bonus for spells 55095, 55095.
Browse files Browse the repository at this point in the history
Original patch provided johonson.
  • Loading branch information
VladimirMangos committed May 26, 2010
1 parent 2be32fc commit adc7bd2
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
4 changes: 1 addition & 3 deletions sql/mangos.sql
Expand Up @@ -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_9977_01_mangos_spell_proc_event` bit(1) default NULL
`required_9978_01_mangos_spell_bonus_data` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';

--
Expand Down Expand Up @@ -14204,12 +14204,10 @@ LOCK TABLES `spell_bonus_data` WRITE;
INSERT INTO `spell_bonus_data` VALUES
/* Death Knight */
(48721, 0, 0, 0.04, 'Death Knight - Blood Boil'),
(55078, 0, 0, 0.055, 'Death Knight - Blood Plague Dummy Proc'),
(50444, 0, 0, 0.105, 'Death Knight - Corpse Explosion Triggered'),
(52212, 0, 0, 0.0475,'Death Knight - Death and Decay Triggered'),
(47632, 0, 0, 0.15, 'Death Knight - Death Coil Damage'),
(47633, 0, 0, 0.15, 'Death Knight - Death Coil Heal'),
(55095, 0, 0, 0.055, 'Death Knight - Frost Fever'),
(49184, 0, 0, 0.1, 'Death Knight - Howling Blast'),
(45477, 0, 0, 0.1, 'Death Knight - Icy Touch'),
(56903, 0, 0, 0, 'Death Knight - Lichflame'),
Expand Down
3 changes: 3 additions & 0 deletions sql/updates/9978_01_mangos_spell_bonus_data.sql
@@ -0,0 +1,3 @@
ALTER TABLE db_version CHANGE COLUMN required_9977_01_mangos_spell_proc_event required_9978_01_mangos_spell_bonus_data bit;

DELETE FROM `spell_bonus_data` WHERE `entry` IN (55078,55095);
2 changes: 2 additions & 0 deletions sql/updates/Makefile.am
Expand Up @@ -72,6 +72,7 @@ pkgdata_DATA = \
9967_01_mangos_spell_proc_event.sql \
9974_01_characters_group.sql \
9977_01_mangos_spell_proc_event.sql \
9978_01_mangos_spell_bonus_data.sql \
README

## Additional files to include when running 'make dist'
Expand Down Expand Up @@ -124,4 +125,5 @@ EXTRA_DIST = \
9967_01_mangos_spell_proc_event.sql \
9974_01_characters_group.sql \
9977_01_mangos_spell_proc_event.sql \
9978_01_mangos_spell_bonus_data.sql \
README
9 changes: 9 additions & 0 deletions src/game/SpellAuras.cpp
Expand Up @@ -4988,6 +4988,15 @@ void Aura::HandlePeriodicDamage(bool apply, bool Real)
}
break;
}
case SPELLFAMILY_DEATHKNIGHT:
{
//Frost Fever and Blood Plague AP scale
if (m_spellProto->SpellFamilyFlags & UI64LIT(0x400080000000000))
{
m_modifier.m_amount += int32(caster->GetTotalAttackPowerValue(BASE_ATTACK) * 0.055f * 1.15f);
};
break;
}
default:
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9977"
#define REVISION_NR "9978"
#endif // __REVISION_NR_H__
2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
@@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_CHARACTERS "required_9974_01_characters_group"
#define REVISION_DB_MANGOS "required_9977_01_mangos_spell_proc_event"
#define REVISION_DB_MANGOS "required_9978_01_mangos_spell_bonus_data"
#define REVISION_DB_REALMD "required_9748_01_realmd_realmlist"
#endif // __REVISION_SQL_H__

0 comments on commit adc7bd2

Please sign in to comment.