Fix DIE_ROLLED event to set targetID to player who rolled the die (#11993)

* Fix DIE_ROLLED event to set targetID to player who rolled the die

* Fix DieRolledEvent instantiation
This commit is contained in:
jimga150 2024-03-25 21:34:42 -04:00 committed by GitHub
parent 50d8be1924
commit c8383649df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 32 additions and 16 deletions

View file

@ -3293,7 +3293,7 @@ public abstract class PlayerImpl implements Player, Serializable {
// raise affected roll events
for (RollDieResult result : dieRolls) {
game.fireEvent(new DieRolledEvent(source, rollDiceEvent.getRollDieType(), rollDiceEvent.getSides(), result.naturalResult, result.modifier, result.planarResult));
game.fireEvent(new DieRolledEvent(source, this.getId(), rollDiceEvent.getRollDieType(), rollDiceEvent.getSides(), result.naturalResult, result.modifier, result.planarResult));
}
game.fireEvent(new DiceRolledEvent(rollDiceEvent.getSides(), dieResults, source, this.getId()));