Spreading Seas
Hey again people,
When i was coding Spreading Seas, i noticed something strange with Dark Depths. In order to get Spreading Seas to work correctly, i had to save the abilities of the enchanted land onto Spreading Seas and then disable Spreading Seas from using any abilities. Then give the abilities back when Spreading Seas disenchants. However, with Dark Depths, i could use the abilities even when i disabled it on Ability.java, Ability_Hand.java, Ability_Activated.java and Ability_Triggered.java. When i say disabled i mean returning false in canPlay() in those java files. It's probably something obvious but could anyone explain why Dark Depths seems to bypass the canPlay check? I've made a dodgy fix by not allowing the player to activate Dark Depths abilities if it is enchanted by Spreading Seas but i would like to find a better fix.
P.S. If it helps, all lands tested had their abilities disabled when only Ability.java returned false
When i was coding Spreading Seas, i noticed something strange with Dark Depths. In order to get Spreading Seas to work correctly, i had to save the abilities of the enchanted land onto Spreading Seas and then disable Spreading Seas from using any abilities. Then give the abilities back when Spreading Seas disenchants. However, with Dark Depths, i could use the abilities even when i disabled it on Ability.java, Ability_Hand.java, Ability_Activated.java and Ability_Triggered.java. When i say disabled i mean returning false in canPlay() in those java files. It's probably something obvious but could anyone explain why Dark Depths seems to bypass the canPlay check? I've made a dodgy fix by not allowing the player to activate Dark Depths abilities if it is enchanted by Spreading Seas but i would like to find a better fix.
P.S. If it helps, all lands tested had their abilities disabled when only Ability.java returned false