diff options
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r-- | src/game-server/character.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index b2420c31..46d7f5c5 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -96,7 +96,7 @@ void Character::perform() Damage damage; damage.base = getModifiedAttribute(BASE_ATTR_PHY_ATK_MIN) + - (rand() % getModifiedAttribute(CHAR_SKILL_WEAPON_BEGIN + type)); + (rand() % (getModifiedAttribute(CHAR_SKILL_WEAPON_BEGIN + type) + 1)); damage.delta = getModifiedAttribute(BASE_ATTR_PHY_ATK_DELTA); damage.type = DAMAGE_PHYSICAL; damage.cth = getModifiedAttribute(BASE_ATTR_HIT) + |