mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Removing Static from Member Variables of AbilityFactory so they are not shared between cards.
- Create a new AbilityFactory for each time AF is used to prevent issues with Factory not being fresh. - Added AbilityFactory_Counters.java for AFs that deal with putting or removing counters from cards - Added createAbilityPutCounters for Abilities that put Counters on cards. - Added Amok, Fume Spitter, and Trigon of Corruption as Samples of using PutCounter
This commit is contained in:
@@ -6093,14 +6093,14 @@ public class CardFactory implements NewConstants {
|
||||
// AbilityFactory cards
|
||||
ArrayList<String> IA = card.getIntrinsicAbilities();
|
||||
if (IA.size() > 0)
|
||||
{
|
||||
AbilityFactory AF = new AbilityFactory();
|
||||
|
||||
{
|
||||
if (card.isInstant() || card.isSorcery())
|
||||
card.clearSpellAbility();
|
||||
|
||||
for (int i=0; i<IA.size(); i++)
|
||||
for (int i=0; i<IA.size(); i++){
|
||||
AbilityFactory AF = new AbilityFactory();
|
||||
card.addSpellAbility(AF.getAbility(IA.get(i), card));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user