Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/game/chars/CCharFight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ int CChar::OnTakeDamage( int iDmg, CChar * pSrc, DAMAGE_TYPE uiType, int iDmgPhy
int iArMax = iArmorRating * g_Rand.Get16Val2Fast(7,35) / 100;
int iArMin = iArMax / 2;

int iDef = g_Rand.GetVal2Fast( iArMin, (iArMax - iArMin) + 1 );
int iDef = g_Rand.GetVal2Fast( iArMin, iArMax );
if ( uiType & DAMAGE_MAGIC ) // magical damage halves effectiveness of defense
iDef /= 2;

Expand Down