Skip to content

Commit

Permalink
Update special_moves.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonSlayer62 committed Jun 22, 2024
1 parent d6a1d28 commit 6dbb01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/js/combat/special_moves.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ function onCombatDamageCalc( pAttacker, pDefender, fightSkill, hitLoc )
damage = RandomNumber( 0, 4 );

// If defender is a player, damage is divided by this modifier from uox.ini
if( !pDefender.npc )
damage /= GetServerSetting( "NPCDAMAGERATE" );
if( pAttacker.npc && !pDefender.npc )
damage /= GetServerSetting( "NPCDAMAGERATE" );

return damage;
}
Expand Down

0 comments on commit 6dbb01f

Please sign in to comment.