diff options
author | kaelima <kaelima@live.se> | 2011-11-13 05:00:26 +0100 |
---|---|---|
committer | kaelima <kaelima@live.se> | 2011-11-13 05:00:26 +0100 |
commit | 163515341e6b748724f8e025679c554c8c35ce09 (patch) | |
tree | b0a318cefed7424285cdbf9d992cf2143a4c3434 | |
parent | 9b7e9a1ee35a012beb36bc2f5ba48361aa841719 (diff) |
Core/Spells: Fix Item - Hunter T9 4P Bonus
-rw-r--r-- | sql/updates/world/2011_11_13_00_world_spell_proc_event.sql | 4 | ||||
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sql/updates/world/2011_11_13_00_world_spell_proc_event.sql b/sql/updates/world/2011_11_13_00_world_spell_proc_event.sql new file mode 100644 index 00000000000..393282c229c --- /dev/null +++ b/sql/updates/world/2011_11_13_00_world_spell_proc_event.sql @@ -0,0 +1,4 @@ +-- Spell proc cooldown for Item - Hunter T9 4P Bonus +DELETE FROM `spell_proc_event` WHERE `entry`=67151; +INSERT INTO `spell_proc_event` (`entry`,`Cooldown`) VALUES +(67151,45); diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 95ac96845ac..c685417a835 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7250,7 +7250,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere // Item - Shaman T10 Elemental 4P Bonus case 70817: { - if(!target) + if (!target) return false; // try to find spell Flame Shock on the target if (AuraEffect const* aurEff = target->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_SHAMAN, 0x10000000, 0x0, 0x0, GetGUID())) @@ -8407,6 +8407,13 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg basepoints0 += victim->GetRemainingPeriodicAmount(GetGUID(), trigger_spell_id, SPELL_AURA_PERIODIC_DAMAGE); break; } + // Item - Hunter T9 4P Bonus + if (auraSpellInfo->Id == 67151) + { + trigger_spell_id = 68130; + target = this; + break; + } break; } case SPELLFAMILY_PALADIN: @@ -14329,7 +14336,7 @@ void Unit::ProcDamageAndSpellFor(bool isVictim, Unit* target, uint32 procFlag, u } if (!handled) - for (uint8 effIndex = 0; effIndex<MAX_SPELL_EFFECTS; ++effIndex) + for (uint8 effIndex = 0; effIndex < MAX_SPELL_EFFECTS; ++effIndex) { if (!(i->effMask & (1<<effIndex))) continue; |