Re: Cloning Joda's Avenger
Fixed.
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=110&t=4108
diff --git a/src/cards/eventide.c b/src/cards/eventide.c
index 0de17eb..142815f 100644
--- a/src/cards/eventide.c
+++ b/src/cards/eventide.c
@@ -2484,6 +2484,10 @@ int card_restless_apparition(int player, int card, event_t event){
int card_rise_of_the_hobgoblins(int player, int card, event_t event){
+ if (event == EVENT_CAN_CAST){
+ return 1;
+ }
+
card_instance_t *instance = get_card_instance( player, card );
if( comes_into_play(player, card, event) ){diff --git a/src/functions/functions.c b/src/functions/functions.c
index 318ac4a..cf48d33 100644
--- a/src/functions/functions.c
+++ b/src/functions/functions.c
@@ -3932,10 +3932,8 @@ int is_what(int player, int card, int test_type){
}
}
else{
- if( test_type == TYPE_ENCHANTMENT ){
- if( check_battlefield_for_id(2, CARD_ID_ENCHANTED_EVENING) ){
- return 1;
- }
+ if( (test_type & TYPE_ENCHANTMENT) && check_battlefield_for_id(2, CARD_ID_ENCHANTED_EVENING) ){
+ test_type |= TYPE_PERMANENT;
}
card_data_t* card_d = get_card_data(player, card);
if( card_d->type & test_type){