diff options
| author | QAston <none@none> | 2009-06-15 22:27:39 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-06-15 22:27:39 +0200 |
| commit | 81333d8dcecba85c1af5344116eb1e86cbd664ca (patch) | |
| tree | 858bf6f5e3bc35d306b21b9f0d08a63ca5b87e89 /src/game/Unit.cpp | |
| parent | 20cd3a6613581f809084db497f398c3d326f37ab (diff) | |
*Fix Honor Among Thieves
*Fix Turn the Tables.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index ebeac678c8c..dd1307e7ef4 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7679,6 +7679,27 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig // dummy basepoints or other customs switch(trigger_spell_id) { + // Auras which should proc on area aura source (caster in this case): + // Turn the Tables + case 52914: + case 52915: + case 52910: + // Honor Among Thieves + case 52916: + { + target = triggeredByAura->GetParentAura()->GetCaster(); + if(!target) + return false; + + if( cooldown && GetTypeId()==TYPEID_PLAYER && ((Player*)target)->HasSpellCooldown(trigger_spell_id)) + return false; + + target->CastSpell(target,trigger_spell_id,true,castItem,triggeredByAura); + + if( cooldown && GetTypeId()==TYPEID_PLAYER ) + ((Player*)this)->AddSpellCooldown(trigger_spell_id,0,time(NULL) + cooldown); + return true; + } // Cast positive spell on enemy target case 7099: // Curse of Mending case 39647: // Curse of Mending |
