2024-06-29 14:40:39 +00:00
|
|
|
from app.functions.get_attack_roll_outcome import get_attack_roll_outcome
|
2024-06-25 21:26:04 +00:00
|
|
|
from app.tables.mentattack import MentalAttackMatrix
|
|
|
|
|
|
|
|
|
|
|
|
def roll_mental_attack(ams, dms, modifier):
|
|
|
|
|
|
|
|
result = {}
|
|
|
|
mam = MentalAttackMatrix()
|
|
|
|
needed = mam.get_attack_score(ams, dms)
|
|
|
|
result["needed"] = needed
|
2024-06-29 14:40:39 +00:00
|
|
|
return get_attack_roll_outcome(result, modifier)
|
2024-06-25 21:26:04 +00:00
|
|
|
|