It is currently 01 Nov 2025, 07:11
   
Text Size

TriggerHandler.java probs

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

TriggerHandler.java probs

Postby RumbleBBU » 09 Sep 2012, 04:55

Just checked out the most recent files from the trunk, and TriggerHandler.java seems to be giving two errors now:
Code: Select all
Description   Resource   Path   Location   Type
The method setIsBuyBackAbility(boolean) is undefined for the type SpellAbility   TriggerHandler.java   /ForgeLocal/src/main/java/forge/card/trigger   line 829   Java Problem
The method setIsBuyBackAbility(boolean) of type new Ability(){} must override or implement a supertype method   TriggerHandler.java   /ForgeLocal/src/main/java/forge/card/trigger   line 828   Java Problem
The problematic method seems to be:
Code: Select all
            @Override
            public void setIsBuyBackAbility(final boolean b) {
                sa[0].setIsBuyBackAbility(b);
            }
User avatar
RumbleBBU
 
Posts: 394
Joined: 18 Aug 2012, 04:24
Has thanked: 29 times
Been thanked: 66 times

Re: TriggerHandler.java probs

Postby Sloth » 09 Sep 2012, 12:29

Fixed! Didn't notice the compile error because there was the other one already. And it was dead code anyway.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 25 guests

cron

Main Menu

User Menu

Our Partners


Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 25 guests

Login Form