Code
diff -r 8f824d68fad6 src/game/DuelHandler.cpp
--- a/src/game/DuelHandler.cpp Fri Dec 04 04:13:28 2009 +0200
+++ b/src/game/DuelHandler.cpp Sun Dec 06 20:54:56 2009 +0300
@@ -51,6 +51,15 @@
pl->duel->startTimer = now;
plTarget->duel->startTimer = now;
+ // reset cooldowns and HP/Mana
+ pl->SetHealth(pl->GetMaxHealth());
+ plTarget->SetHealth(plTarget->GetMaxHealth());
+
+ if (pl->getPowerType() == POWER_MANA) pl->SetPower(POWER_MANA, pl->GetMaxPower(POWER_MANA));
+ if (plTarget->getPowerType() == POWER_MANA) plTarget->SetPower(POWER_MANA, plTarget->GetMaxPower(POWER_MANA));
+ //only for cooldowns which < 15 min
+ if (!pl->GetMap()->IsDungeon()) { pl->RemoveArenaSpellCooldowns(); plTarget->RemoveArenaSpellCooldowns(); }
+
pl->SendDuelCountdown(3000);
plTarget->SendDuelCountdown(3000);
}