mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
Fixed crippling blow issues with berserker frenzy
Also added two rules to control when to enter/exit berserker frenzy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user