MagisterCultuum
Great Sage
Thanks.
Would that be something.getCombatOdds(caster, pUnit) or just getCombatOdds(caster, pUnit) by itself? If the first one, what would that something be?
I feel like I should really remember this, but how do I make sure the unit doesn't challenge and kill itself? Can I just say "if caster != pUnit:," or do I need to use some function to make sure they aren't the same unit.
Hmm...is the function that determines how much xp a unit would get from combat exposed for this spell to use too, or should I just stick with a random amount based on the odds? How about a function to determine how injured the winner should be?
Would that be something.getCombatOdds(caster, pUnit) or just getCombatOdds(caster, pUnit) by itself? If the first one, what would that something be?
I feel like I should really remember this, but how do I make sure the unit doesn't challenge and kill itself? Can I just say "if caster != pUnit:," or do I need to use some function to make sure they aren't the same unit.
Hmm...is the function that determines how much xp a unit would get from combat exposed for this spell to use too, or should I just stick with a random amount based on the odds? How about a function to determine how injured the winner should be?