action_prob_pre_action_dice_roll() checking action possibility for wrong player
I agree that it looks that way. I have sent the author of that code an email to check if we have missed something.
Reply To kvilhaugsvik
I have sent the author of that code an email to check if we have missed something.
We didn't miss something.
It seems wrong to me that action_prob_pre_action_dice_roll() checks "is_effect_val_known(EFT_ACTION_ODDS_PCT, act_player, tgt_player, tgt_player, ...". If I understand the functions right, the first player argument 'act_player' is who gets the information. Second and third ones are the the parties of the incident. So the call is like 'tgt_player' attacking 'tgt_player'. Should be 'act_player' attacking 'tgt_player', I think.