[10467] Implement proper triggering for spell 34477, 57934

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fixed charges amount (1) for main spell auras.
This commit is contained in:
tester20tester20 tester20 2010-09-11 01:59:59 +04:00 committed by VladimirMangos
parent 4d30b464b4
commit 7785daf2f9
3 changed files with 47 additions and 9 deletions

View file

@ -1634,6 +1634,13 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
triggered_spell_id = 32747;
break;
}
// Tricks of the trade
case 57934:
{
triggered_spell_id = 59628; // 6 sec buff on self
target = this;
break;
}
}
// Cut to the Chase
if (dummySpell->SpellIconID == 2909)
@ -1737,6 +1744,13 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
pVictim->CastSpell(pVictim, 57894, true, NULL, NULL, GetGUID());
return SPELL_AURA_PROC_OK;
}
// Misdirection
else if(dummySpell->Id == 34477)
{
triggered_spell_id = 35079; // 4 sec buff on self
target = this;
break;
}
break;
}
case SPELLFAMILY_PALADIN: