[10546] Fixed EffectActivateRune activate only expected runes amount of some rune type.

This commit is contained in:
VladimirMangos 2010-09-26 22:03:37 +04:00
parent 276afc3cfb
commit b236e83e70
5 changed files with 23 additions and 13 deletions

View file

@ -7912,13 +7912,9 @@ void Spell::EffectActivateRune(SpellEffectIndex eff_idx)
if(plr->getClass() != CLASS_DEATH_KNIGHT)
return;
for(uint32 j = 0; j < MAX_RUNES; ++j)
{
if(plr->GetRuneCooldown(j) && plr->GetCurrentRune(j) == RuneType(m_spellInfo->EffectMiscValue[eff_idx]))
{
plr->SetRuneCooldown(j, 0);
}
}
int32 count = damage; // max amount of reset runes
plr->ActivateRunes(RuneType(m_spellInfo->EffectMiscValue[eff_idx]), count);
plr->ResyncRunes();
}
void Spell::EffectTitanGrip(SpellEffectIndex eff_idx)