View Single Post
  #1  
Old 07-11-2012, 08:28 PM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default Level 10/20 damage caps

In zone/attack.cpp
This:
Code:
if(GetLevel() < 10 && max_hit > 20)
    max_hit = (RuleI(Combat, HitCapPre10));
else if(GetLevel() < 20 && max_hit > 40)
    max_hit = (RuleI(Combat, HitCapPre20));
Should probably be this:
Code:
if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
{
    max_hit = (RuleI(Combat, HitCapPre10));
}
else if(GetLevel() < 20 && max_hit > RuleI(Combat, HitCapPre20))
{
    max_hit = (RuleI(Combat, HitCapPre20));
}
It's not going to be an issue for most people, but it could cause some problems on custom servers.
Reply With Quote