Page 1 of 1

Reflected Mana

PostPosted: 16 Feb 2013, 15:07
by Sloth
When i tried to add AI support for ManaReflected i encountered some weird stuff (notably that the variable "reflected" in AbilityManaPart was checked 5 times in the code, but was never set). I fixed these in r19654, but you know that ManaReflected is a dangerous beast, so please report when you encounter some weird stuff.

Re: Reflected Mana

PostPosted: 16 Feb 2013, 16:58
by Max mtg
A small technical note:
Code: Select all
        else if (sa.getApi().equals(ApiType.ManaReflected)) {
            baseMana = abMana.getExpressChoice();
        }
You may compare Enum members with plain == operator. It is guaranteed that no two instances of any enum member exist.

And I don't understand how it reflected mana works as well.