diff options
author | Subv <s.v.h21@hotmail.com> | 2012-04-07 16:58:56 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-04-07 16:58:56 -0500 |
commit | f17b990f6851279f1ed0b4d1afbd2b307c9c7d89 (patch) | |
tree | 53fbdc58e12f2a1731df1da190b766ba727c294e | |
parent | 7ce33ca0a604f3cc71c0e951029a76e0cbcc7e0a (diff) |
Core/Spells: Fixed rogue T10 2P and 4P bonuses
Closes #422
Signed-off-by: Subv <s.v.h21@hotmail.com>
-rw-r--r-- | sql/updates/world/2012_04_07_02_world_spell_proc_event.sql | 1 | ||||
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/sql/updates/world/2012_04_07_02_world_spell_proc_event.sql b/sql/updates/world/2012_04_07_02_world_spell_proc_event.sql new file mode 100644 index 00000000000..62ef49bc657 --- /dev/null +++ b/sql/updates/world/2012_04_07_02_world_spell_proc_event.sql @@ -0,0 +1 @@ +UPDATE `spell_proc_event` SET `procFlags`=0 WHERE `entry`=70805; diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 431fc39d55b..cf14bb02ed9 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -8672,6 +8672,26 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg } break; } + case SPELLFAMILY_ROGUE: + { + switch (auraSpellInfo->Id) + { + // Rogue T10 2P bonus, should only proc on caster + case 70805: + { + if (victim != this) + return false; + break; + } + // Rogue T10 4P bonus, should proc on victim + case 70803: + { + target = victim; + break; + } + } + break; + } default: break; } |