fix: Fixes Dice Infinite loop and deserialization of some items (#1360)
### Summary - Fixes deserialization issues with some items. - Changes Utility.Dice to prevent long iteration by passing `(uint)-1`
This commit is contained in:
parent
9b6aa1deed
commit
3097eb4fa7
6 changed files with 14 additions and 11 deletions
|
|
@ -2106,7 +2106,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
public virtual double GetAosDamage(Mobile attacker, int bonus, uint dice, uint sides)
|
||||
public virtual double GetAosDamage(Mobile attacker, int bonus, int dice, int sides)
|
||||
{
|
||||
var damage = Utility.Dice(dice, sides, bonus) * 100;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue