Bug reports
by ubeefx
Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins
Re: Bug reports
by melvin » 19 Jan 2014, 11:29
Hourly build #658 includes the rollback on the icons, https://buildhive.cloudbees.com/job/mel ... arena/658/
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by muaddib » 20 Jan 2014, 12:17
Can't cast Wildslayer Elves and then use Forbidden Lore enchanted first land.
While cast Wildslayer Elves Magarena automatically tap first land and can't do tap land manually.
While cast Wildslayer Elves Magarena automatically tap first land and can't do tap land manually.
-
muaddib - Tester
- Posts: 118
- Joined: 03 Mar 2011, 08:37
- Location: Russia
- Has thanked: 0 time
- Been thanked: 5 times
Re: Bug reports
by ShawnieBoy » 20 Jan 2014, 13:00
Fixed Cinder Pyromancer, The land tapping priority is an ongoing issue and will have a look at the ability choice when I get back from work 

-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Bug reports
by melvin » 20 Jan 2014, 13:32
Thanks for the report! Fixed in https://code.google.com/p/magarena/sour ... 633df5f8a3muaddib wrote:Absent text
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by jerichopumpkin » 20 Jan 2014, 17:42
I've noticed that this happens with other cards too, i.e. Vizkopa Guildmage does not display any text for lifelink abilitymelvin wrote:Thanks for the report! Fixed in https://code.google.com/p/magarena/sour ... 633df5f8a3muaddib wrote:Absent text
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Bug reports
by melvin » 21 Jan 2014, 02:35
Yup, all cards using the ability "pay <cost>: <chosen> gain <ability>" template are affected.jerichopumpkin wrote:I've noticed that this happens with other cards too, i.e. Vizkopa Guildmage does not display any text for lifelink ability
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by jerichopumpkin » 25 Jan 2014, 12:30
Found a mistype in Alpha Kavu, it gives +1/+1 instead of -1/+1
Alpha_Kavu.txt
Alpha_Kavu.txt
- Code: Select all
name=Alpha Kavu
url=http://magiccards.info/ps/en/77.html
image=http://mtgimage.com/card/alpha%20kavu.jpg
value=2.338
rarity=U
type=Creature
subtype=Kavu
cost={2}{G}
pt=2/2
ability=pay {1}{G}:Target Kavu creature gets -1/+1 until end of turn.
timing=main
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Bug reports
by melvin » 25 Jan 2014, 12:38
Thanks for the report! Fixed in https://code.google.com/p/magarena/sour ... 3609cc5712
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by jerichopumpkin » 25 Jan 2014, 13:08
This one's mine: I've scripted Idyllic Tutor as Enlightened Tutor, so the enchantment is put on top of deck instead in hand.
Here is the right version:
Idyllic_Tutor.groovy
Here is the right version:
Idyllic_Tutor.groovy
- Code: Select all
def ENCHANTMENT_CARD_FROM_LIBRARY = new MagicCardFilterImpl() {
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicCard target) {
return target.hasType(MagicType.Enchantment);
}
public boolean acceptType(final MagicTargetType targetType) {
return targetType == MagicTargetType.Library;
}
};
def AN_ENCHANTMENT_CARD_FROM_LIBRARY = new MagicTargetChoice(
ENCHANTMENT_CARD_FROM_LIBRARY,
"an enchantment card"
);
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"PN may search his or her library for an enchantment card, reveals it, put it into his or her hand, and shuffle his or her library."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.addEvent(new MagicSearchIntoHandEvent(
event,
AN_ENCHANTMENT_CARD_FROM_LIBRARY
));
}
}
]
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Bug reports
by melvin » 26 Jan 2014, 01:56
Thanks for the fix, applied in https://code.google.com/p/magarena/sour ... 9dee7ecc37jerichopumpkin wrote:This one's mine: I've scripted Idyllic Tutor as Enlightened Tutor, so the enchantment is put on top of deck instead in hand.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by jerichopumpkin » 31 Jan 2014, 11:13
Wingrattle Scarecrow is broken, persist does not trigger, although you control a black creature
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Bug reports
by ShawnieBoy » 31 Jan 2014, 14:51
Thanks for that find - (A testament to always playtest everything
)
I know the code should work, and it does (in a way) - The bug is due to the peculiar timing involved. Here's the strange bit:
The persist ability is only present while Wingrattle Scarecrow is in play.
Due to cards in the graveyard not being able to have abilities, as soon as Wingrattle Scarecrow leaves play, the MagicStatic(MagicLayer.Ability) stops checking to see what abilities it should have. In a similar way Undying Evil also doesn't work for a similar reason.
Creatures gaining Undying or Persist looks like a problem
Affected cards: Antler Skulkin, Rattleblaze Scarecrow, Undying Evil, Wingrattle Scarecrow,

I know the code should work, and it does (in a way) - The bug is due to the peculiar timing involved. Here's the strange bit:
The persist ability is only present while Wingrattle Scarecrow is in play.
Due to cards in the graveyard not being able to have abilities, as soon as Wingrattle Scarecrow leaves play, the MagicStatic(MagicLayer.Ability) stops checking to see what abilities it should have. In a similar way Undying Evil also doesn't work for a similar reason.
Creatures gaining Undying or Persist looks like a problem

Affected cards: Antler Skulkin, Rattleblaze Scarecrow, Undying Evil, Wingrattle Scarecrow,
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Bug reports
by melvin » 01 Feb 2014, 04:10
The bug with Wingrattle Scarecrow is related to certain types of triggers which cannot be added to permanents, one such class of triggers are those that extend MagicWhenPutIntoGraveyardTrigger, of which MagicWhenDiesTrigger is a member. The fix is to move MagicWhenDiesTrigger to a different type, implemented in https://code.google.com/p/magarena/sour ... 055fb9fffe
The issue with Antler Skulkin and Undying Evil is another problem to do with the fact that MagicGainAbilityAction only handles abilities without implementation (flying, first strike, lifelink, etc). Fixed in https://code.google.com/p/magarena/sour ... 9170f9190e to handle abilities with implementation (persist, undying, exalted, etc)
PS: Originally Magarena only had abilities without implementation, abilities with implementation (has addAbilityImpl method in MagicAbility) were added later. Abilities without implementation were implemented directly in the engine elsewhere in the program, this is discouraged for new abilities. Abilities with implementation is the preferred method going forward for new abilities.
The issue with Antler Skulkin and Undying Evil is another problem to do with the fact that MagicGainAbilityAction only handles abilities without implementation (flying, first strike, lifelink, etc). Fixed in https://code.google.com/p/magarena/sour ... 9170f9190e to handle abilities with implementation (persist, undying, exalted, etc)
PS: Originally Magarena only had abilities without implementation, abilities with implementation (has addAbilityImpl method in MagicAbility) were added later. Abilities without implementation were implemented directly in the engine elsewhere in the program, this is discouraged for new abilities. Abilities with implementation is the preferred method going forward for new abilities.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Who is online
Users browsing this forum: No registered users and 1 guest