davewx7 / citadel

A turn based strategy game based on the Anura engine
Other
99 stars 25 forks source link

Update Divine Illumination spell. #257

Closed ghost closed 5 years ago

ghost commented 5 years ago

Should fix #254.

It looks like either at some point info.player might have been synonymous for info.player_index, or this card could have never worked OK. info.player is null, which is being implicitly promoted to 0, giving the mana bonus always to player 0. This explains the misbehavior described by SkippyQ. I actually checked that this change fixes the problem.

ghost commented 5 years ago

This is simple and should be alright, I'll merge it in a few days.