Подскажите почему не хочет компилится патч сброса кд перед дуелью (патч от dimitro)
Код
error: no matching function for call to ‘World::getBoolConfig(WorldIntConfigs)’
часть кода
Код
void OnDuelEnd(Player *winner, Player *looser, DuelCompleteType type)
{
if (sWorld->getBoolConfig(CONFIG_DUEL_RESET_COOLDOWN_ON_FINISH))
{
if (sWorld->getBoolConfig(CONFIG_DUEL_RESET_COOLDOWN_ONLY_IN_ELWYNN_AND_DUROTAR))
{
if(winner->GetZoneId() == 14 || winner->GetZoneId() == 12)
{
if (type == DUEL_WON)
{
winner->RemoveArenaSpellCooldowns();
looser->RemoveArenaSpellCooldowns();
winner->SetHealth(winner->GetMaxHealth());
looser->SetHealth(looser->GetMaxHealth());
if (winner->getPowerType() == POWER_MANA)
winner->SetPower(POWER_MANA, winner->GetMaxPower(POWER_MANA));
if (looser->getPowerType() == POWER_MANA)
looser->SetPower(POWER_MANA, looser->GetMaxPower(POWER_MANA));
}
winner->HandleEmoteCommand(EMOTE_ONESHOT_CHEER);
}
}
else
if (type == DUEL_WON)
{
winner->RemoveArenaSpellCooldowns();
looser->RemoveArenaSpellCooldowns();
winner->SetHealth(winner->GetMaxHealth());
looser->SetHealth(looser->GetMaxHealth());
if (winner->getPowerType() == POWER_MANA)
winner->SetPower(POWER_MANA, winner->GetMaxPower(POWER_MANA));
if (looser->getPowerType() == POWER_MANA)
looser->SetPower(POWER_MANA, looser->GetMaxPower(POWER_MANA));
}
winner->HandleEmoteCommand(EMOTE_ONESHOT_CHEER);
}
}