[8520] Limit telent 49182 and ranks triggering expected:wq runes cooldown case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Shendor 2009-09-21 15:17:45 +04:00 committed by VladimirMangos
parent 1c59403b39
commit 4254580141
4 changed files with 18 additions and 1 deletions

View file

@ -19657,6 +19657,16 @@ void Player::InitRunes()
SetFloatValue(PLAYER_RUNE_REGEN_1 + i, 0.1f);
}
bool Player::IsBaseRuneSlotsOnCooldown( RuneType runeType ) const
{
for(uint32 i = 0; i < MAX_RUNES; ++i)
if (GetBaseRune(i) == runeType && GetRuneCooldown(i) == 0)
return false;
return true;
}
void Player::AutoStoreLoot(uint8 bag, uint8 slot, uint32 loot_id, LootStore const& store, bool broadcast)
{
Loot loot;