[10548] Implement missing part spell 47568 functionality.

Original patch prowided by False.Genesis.
This commit is contained in:
VladimirMangos 2010-09-26 23:34:23 +04:00
parent 958c3ac04c
commit 7f49bd357e
4 changed files with 22 additions and 5 deletions

View file

@ -20984,16 +20984,20 @@ void Player::ConvertRune(uint8 index, RuneType newType)
GetSession()->SendPacket(&data);
}
void Player::ActivateRunes(RuneType type, uint32 count)
bool Player::ActivateRunes(RuneType type, uint32 count)
{
bool modify = false;
for(uint32 j = 0; count > 0 && j < MAX_RUNES; ++j)
{
if (GetRuneCooldown(j) && GetCurrentRune(j) == type)
{
SetRuneCooldown(j, 0);
--count;
modify = true;
}
}
return modify;
}
void Player::ResyncRunes()