Fixed crippling blow issues with berserker frenzy

Also added two rules to control when to enter/exit berserker frenzy
This commit is contained in:
Michael Cook
2013-12-11 01:49:51 -05:00
parent cd2825288d
commit 76ec6e4da2
6 changed files with 24 additions and 24 deletions
+4 -4
View File
@@ -464,13 +464,13 @@ bool Client::Process() {
}
if (GetClass() == WARRIOR || GetClass() == BERSERKER) {
if(!dead && !berserk && this->GetHPRatio() < 30) {
if (!dead && !IsBerserk() && GetHPRatio() < RuleI(Combat, BerserkerFrenzyStart)) {
entity_list.MessageClose_StringID(this, false, 200, 0, BERSERK_START, GetName());
this->berserk = true;
berserk = true;
}
if (berserk && this->GetHPRatio() > 30) {
if (IsBerserk() && GetHPRatio() > RuleI(Combat, BerserkerFrenzyEnd)) {
entity_list.MessageClose_StringID(this, false, 200, 0, BERSERK_END, GetName());
this->berserk = false;
berserk = false;
}
}