mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7782] Fixed dummy proc from spell 34074
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
cf4884b03a
commit
952474f22d
5 changed files with 19 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ DROP TABLE IF EXISTS `db_version`;
|
||||||
CREATE TABLE `db_version` (
|
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,
|
||||||
`required_7777_01_mangos_spell_proc_event` bit(1) default NULL
|
`required_7782_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';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
|
||||||
4
sql/updates/7782_01_mangos_spell_proc_event.sql
Normal file
4
sql/updates/7782_01_mangos_spell_proc_event.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
ALTER TABLE db_version CHANGE COLUMN required_7777_01_mangos_spell_proc_event required_7782_01_mangos_spell_proc_event bit;
|
||||||
|
|
||||||
|
DELETE FROM spell_proc_event WHERE entry = 34074;
|
||||||
|
INSERT INTO spell_proc_event VALUES (34074, 0, 9, 522819, 8917121, 513, 0, 0, 0, 0, 0);
|
||||||
|
|
@ -179,6 +179,7 @@ pkgdata_DATA = \
|
||||||
7720_01_mangos_mangos_string.sql \
|
7720_01_mangos_mangos_string.sql \
|
||||||
7776_01_mangos_npc_spellclick_spells.sql \
|
7776_01_mangos_npc_spellclick_spells.sql \
|
||||||
7777_01_mangos_spell_proc_event.sql \
|
7777_01_mangos_spell_proc_event.sql \
|
||||||
|
7782_01_mangos_spell_proc_event.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -338,4 +339,5 @@ EXTRA_DIST = \
|
||||||
7720_01_mangos_mangos_string.sql \
|
7720_01_mangos_mangos_string.sql \
|
||||||
7776_01_mangos_npc_spellclick_spells.sql \
|
7776_01_mangos_npc_spellclick_spells.sql \
|
||||||
7777_01_mangos_spell_proc_event.sql \
|
7777_01_mangos_spell_proc_event.sql \
|
||||||
|
7782_01_mangos_spell_proc_event.sql \
|
||||||
README
|
README
|
||||||
|
|
|
||||||
|
|
@ -5317,6 +5317,16 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_HUNTER:
|
case SPELLFAMILY_HUNTER:
|
||||||
{
|
{
|
||||||
|
// Aspect of the Viper
|
||||||
|
if ( dummySpell->SpellFamilyFlags & 0x4000000000000LL )
|
||||||
|
{
|
||||||
|
uint32 maxmana = GetMaxPower(POWER_MANA);
|
||||||
|
basepoints0 = maxmana* GetAttackTime(RANGED_ATTACK)/1000.0f/100.0f;
|
||||||
|
|
||||||
|
target = this;
|
||||||
|
triggered_spell_id = 34075;
|
||||||
|
break;
|
||||||
|
}
|
||||||
// Thrill of the Hunt
|
// Thrill of the Hunt
|
||||||
if ( dummySpell->SpellIconID == 2236 )
|
if ( dummySpell->SpellIconID == 2236 )
|
||||||
{
|
{
|
||||||
|
|
@ -10608,6 +10618,7 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELL_AURA_MANA_SHIELD:
|
case SPELL_AURA_MANA_SHIELD:
|
||||||
|
case SPELL_AURA_OBS_MOD_MANA:
|
||||||
case SPELL_AURA_DUMMY:
|
case SPELL_AURA_DUMMY:
|
||||||
{
|
{
|
||||||
sLog.outDebug("ProcDamageAndSpell: casting spell id %u (triggered by %s dummy aura of spell %u)", spellInfo->Id,(isVictim?"a victim's":"an attacker's"), triggeredByAura->GetId());
|
sLog.outDebug("ProcDamageAndSpell: casting spell id %u (triggered by %s dummy aura of spell %u)", spellInfo->Id,(isVictim?"a victim's":"an attacker's"), triggeredByAura->GetId());
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7781"
|
#define REVISION_NR "7782"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue