StaticAbilityContinuous
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
2 posts
• Page 1 of 1
StaticAbilityContinuous
by slapshot5 » 27 Mar 2012, 03:12
In StaticAbilityContinuous, is there a reason we call directly to CardFactoryUtil.xCount instead of using the AbilityFactory.calculateAmount wrapper?
This prevents us from using things like Remembered$CardCounters.CHARGE with the StaticEffect. I change it like this to do some testing:
Does anyone more familiar here know if this was done for a reason or if changing to calculateAmount would break other things?
Thanks,
slapshot5
This prevents us from using things like Remembered$CardCounters.CHARGE with the StaticEffect. I change it like this to do some testing:
- Code: Select all
//CardFactoryUtil.xCount(hostCard, hostCard.getSVar(setT));
AbilityFactory.calculateAmount(hostCard, setT, null);
Does anyone more familiar here know if this was done for a reason or if changing to calculateAmount would break other things?
Thanks,
slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: StaticAbilityContinuous
by Sloth » 28 Mar 2012, 06:13
I think there should be no problem.
Maybe xCount and calculateAmount could be merged/reorganized now that there is no reason not to use calculateAmount.
Maybe xCount and calculateAmount could be merged/reorganized now that there is no reason not to use calculateAmount.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 33 guests