mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10548] Implement missing part spell 47568 functionality.
Original patch prowided by False.Genesis.
This commit is contained in:
parent
958c3ac04c
commit
7f49bd357e
4 changed files with 22 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue