mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7209] Fix damage for paladin 53595
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
f19f5618fb
commit
8197ccbc73
5 changed files with 18 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
DROP TABLE IF EXISTS `db_version`;
|
||||
CREATE TABLE `db_version` (
|
||||
`version` varchar(120) default NULL,
|
||||
`required_7207_02_mangos_gameobject` bit(1) default NULL
|
||||
`required_7209_01_mangos_spell_bonus_data` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||
|
||||
--
|
||||
|
|
@ -17287,6 +17287,7 @@ INSERT INTO `spell_bonus_data` VALUES
|
|||
('53719', '0.25', '0', '0.16', 'Paladin - Seal of The Martyr Enemy Proc'),
|
||||
('53718', '0.25', '0', '0.16', 'Paladin - Seal of The Martyr Self Proc'),
|
||||
('25742', '0.07', '0', '0.039', 'Paladin - Seal of Righteousness Dummy Proc'),
|
||||
('53595', '0', '0', '0','Paladin - Hammer of the Righteous'),
|
||||
('31803', '0', '0.013', '0.15', 'Paladin - Holy Vengeance'),
|
||||
('52042', '0.045', '0', '0', 'Shaman - Healing Stream Totem Triggered Heal'),
|
||||
('32546', '0.8068', '0', '0', 'Priest - Binding Heal'),
|
||||
|
|
|
|||
5
sql/updates/7209_01_mangos_spell_bonus_data.sql
Normal file
5
sql/updates/7209_01_mangos_spell_bonus_data.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_7207_02_mangos_gameobject required_7209_01_mangos_spell_bonus_data bit;
|
||||
|
||||
DELETE FROM `spell_bonus_data` WHERE `entry` IN (53595);
|
||||
INSERT INTO `spell_bonus_data` VALUES
|
||||
('53595', '0', '0', '0','Paladin - Hammer of the Righteous');
|
||||
|
|
@ -162,6 +162,7 @@ pkgdata_DATA = \
|
|||
7207_01_mangos_creature.sql \
|
||||
7207_02_mangos_gameobject.sql \
|
||||
7207_03_characters_corpse.sql \
|
||||
7209_01_mangos_spell_bonus_data.sql \
|
||||
README
|
||||
|
||||
## Additional files to include when running 'make dist'
|
||||
|
|
@ -304,4 +305,5 @@ EXTRA_DIST = \
|
|||
7207_01_mangos_creature.sql \
|
||||
7207_02_mangos_gameobject.sql \
|
||||
7207_03_characters_corpse.sql \
|
||||
7209_01_mangos_spell_bonus_data.sql \
|
||||
README
|
||||
|
|
|
|||
|
|
@ -583,6 +583,14 @@ void Spell::EffectSchoolDMG(uint32 effect_idx)
|
|||
m_caster->SpellBaseDamageBonusForVictim(GetSpellSchoolMask(m_spellInfo), unitTarget);
|
||||
damage += int32(ap * 0.15f) + int32(holy * 15 / 100);
|
||||
}
|
||||
// Hammer of the Righteous
|
||||
else if(m_spellInfo->SpellFamilyFlags&0x0004000000000000LL)
|
||||
{
|
||||
// Add main hand dps * effect[2] amount
|
||||
float averange = (m_caster->GetFloatValue(UNIT_FIELD_MINDAMAGE) + m_caster->GetFloatValue(UNIT_FIELD_MAXDAMAGE)) / 2;
|
||||
int32 count = m_caster->CalculateSpellDamage(m_spellInfo, 2, m_spellInfo->EffectBasePoints[2], unitTarget);
|
||||
damage += count * int32(averange * 1000) / m_caster->GetAttackTime(BASE_ATTACK);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7208"
|
||||
#define REVISION_NR "7209"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue