mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10159] clean-up after recent changes
This commit is contained in:
parent
cec6063933
commit
a4c197681b
6 changed files with 32 additions and 38 deletions
|
|
@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
|
||||||
`version` varchar(120) default NULL,
|
`version` varchar(120) default NULL,
|
||||||
`creature_ai_version` varchar(120) default NULL,
|
`creature_ai_version` varchar(120) default NULL,
|
||||||
`cache_id` int(10) default '0',
|
`cache_id` int(10) default '0',
|
||||||
`required_10156_03_mangos_spell_proc_event` bit(1) default NULL
|
`required_10159_01_mangos_spell_proc_event` bit(1) default NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -18139,7 +18139,7 @@ INSERT INTO `spell_proc_event` VALUES
|
||||||
(48483, 0x00, 7, 0x00008800, 0x00008800, 0x00008800, 0x00000440, 0x00000440, 0x00000440, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
(48483, 0x00, 7, 0x00008800, 0x00008800, 0x00008800, 0x00000440, 0x00000440, 0x00000440, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
||||||
(48496, 0x00, 7, 0x00000060, 0x00000060, 0x00000060, 0x02000002, 0x02000002, 0x02000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0),
|
(48496, 0x00, 7, 0x00000060, 0x00000060, 0x00000060, 0x02000002, 0x02000002, 0x02000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0),
|
||||||
(48506, 0x00, 7, 0x00000005, 0x00000005, 0x00000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
(48506, 0x00, 7, 0x00000005, 0x00000005, 0x00000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
||||||
(48516, 0x00, 7, 0x00000005, 0x00000005, 0x00000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 30),
|
(48516, 0x00, 7, 0x00000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 30),
|
||||||
(48539, 0x00, 7, 0x00000010, 0x00000010, 0x00000010, 0x04000000, 0x04000000, 0x04000000, 0x00000000, 0x00000000, 0x00000000, 0x00040000, 0x00000000, 0.000000, 0.000000, 0),
|
(48539, 0x00, 7, 0x00000010, 0x00000010, 0x00000010, 0x04000000, 0x04000000, 0x04000000, 0x00000000, 0x00000000, 0x00000000, 0x00040000, 0x00000000, 0.000000, 0.000000, 0),
|
||||||
(48833, 0x00, 7, 0x00000000, 0x00000000, 0x00000000, 0x00000440, 0x00000440, 0x00000440, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
(48833, 0x00, 7, 0x00000000, 0x00000000, 0x00000000, 0x00000440, 0x00000440, 0x00000440, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
||||||
(48835, 0x00, 10, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000008, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
(48835, 0x00, 10, 0x00000000, 0x00000000, 0x00000000, 0x00000008, 0x00000008, 0x00000008, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0),
|
||||||
|
|
|
||||||
5
sql/updates/10159_01_mangos_spell_proc_event.sql
Normal file
5
sql/updates/10159_01_mangos_spell_proc_event.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
ALTER TABLE db_version CHANGE COLUMN required_10156_03_mangos_spell_proc_event required_10159_01_mangos_spell_proc_event bit;
|
||||||
|
|
||||||
|
delete from `spell_proc_event` where `entry` = 48516;
|
||||||
|
insert into `spell_proc_event` values
|
||||||
|
(48516, 0x00, 7, 0x00000005, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 30);
|
||||||
|
|
@ -102,6 +102,7 @@ pkgdata_DATA = \
|
||||||
10156_01_characters_character_aura.sql \
|
10156_01_characters_character_aura.sql \
|
||||||
10156_02_characters_pet_aura.sql \
|
10156_02_characters_pet_aura.sql \
|
||||||
10156_03_mangos_spell_proc_event.sql \
|
10156_03_mangos_spell_proc_event.sql \
|
||||||
|
10159_01_mangos_spell_proc_event.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -184,4 +185,5 @@ EXTRA_DIST = \
|
||||||
10156_01_characters_character_aura.sql \
|
10156_01_characters_character_aura.sql \
|
||||||
10156_02_characters_pet_aura.sql \
|
10156_02_characters_pet_aura.sql \
|
||||||
10156_03_mangos_spell_proc_event.sql \
|
10156_03_mangos_spell_proc_event.sql \
|
||||||
|
10159_01_mangos_spell_proc_event.sql \
|
||||||
README
|
README
|
||||||
|
|
|
||||||
|
|
@ -1291,9 +1291,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
// Siphon Life
|
// Siphon Life
|
||||||
case 63108:
|
case 63108:
|
||||||
{
|
{
|
||||||
if (triggeredByAura->GetEffIndex() != EFFECT_INDEX_0)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Glyph of Siphon Life
|
// Glyph of Siphon Life
|
||||||
if (Aura *aur = GetAura(56216, EFFECT_INDEX_0))
|
if (Aura *aur = GetAura(56216, EFFECT_INDEX_0))
|
||||||
triggerAmount += triggerAmount * aur->GetModifier()->m_amount / 100;
|
triggerAmount += triggerAmount * aur->GetModifier()->m_amount / 100;
|
||||||
|
|
@ -1347,11 +1344,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
if (!procSpell)
|
if (!procSpell)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// avoid double triggering from 2 auras
|
|
||||||
if (triggeredByAura->GetEffIndex() != EFFECT_INDEX_1)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
|
|
||||||
// Renew
|
// Renew
|
||||||
Aura* healingAura = pVictim->GetAura(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_PRIEST, UI64LIT(0x40), 0, GetGUID());
|
Aura* healingAura = pVictim->GetAura(SPELL_AURA_PERIODIC_HEAL, SPELLFAMILY_PRIEST, UI64LIT(0x40), 0, GetGUID());
|
||||||
if (!healingAura)
|
if (!healingAura)
|
||||||
|
|
@ -1369,9 +1361,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
if (!procSpell)
|
if (!procSpell)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (triggeredByAura->GetEffIndex() != EFFECT_INDEX_1)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
Aura* leachAura = pVictim->GetAura(SPELL_AURA_PERIODIC_LEECH, SPELLFAMILY_PRIEST, UI64LIT(0x02000000), NULL, GetGUID());
|
Aura* leachAura = pVictim->GetAura(SPELL_AURA_PERIODIC_LEECH, SPELLFAMILY_PRIEST, UI64LIT(0x02000000), NULL, GetGUID());
|
||||||
if (!leachAura)
|
if (!leachAura)
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -1586,9 +1575,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
{
|
{
|
||||||
if (!procSpell)
|
if (!procSpell)
|
||||||
return false;
|
return false;
|
||||||
// Only 0 aura can proc
|
|
||||||
if (effIndex != EFFECT_INDEX_0)
|
|
||||||
return true;
|
|
||||||
// Wrath crit
|
// Wrath crit
|
||||||
if (procSpell->SpellFamilyFlags & UI64LIT(0x0000000000000001))
|
if (procSpell->SpellFamilyFlags & UI64LIT(0x0000000000000001))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10158"
|
#define REVISION_NR "10159"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef __REVISION_SQL_H__
|
#ifndef __REVISION_SQL_H__
|
||||||
#define __REVISION_SQL_H__
|
#define __REVISION_SQL_H__
|
||||||
#define REVISION_DB_CHARACTERS "required_10156_02_characters_pet_aura"
|
#define REVISION_DB_CHARACTERS "required_10156_02_characters_pet_aura"
|
||||||
#define REVISION_DB_MANGOS "required_10156_03_mangos_spell_proc_event"
|
#define REVISION_DB_MANGOS "required_10159_01_mangos_spell_proc_event"
|
||||||
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
|
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
|
||||||
#endif // __REVISION_SQL_H__
|
#endif // __REVISION_SQL_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue