mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10546] Fixed EffectActivateRune activate only expected runes amount of some rune type.
This commit is contained in:
parent
276afc3cfb
commit
b236e83e70
5 changed files with 23 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue