It is currently 28 Oct 2025, 14:16
   
Text Size

Phase Work

Post MTG Forge Related Programming Questions Here

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

Re: Phase Work

Postby friarsol » 10 Nov 2010, 18:20

timmermac wrote:r3399: I attack with my Wolf Pet. There's nothing visible to indicate that the computer's creatures, which are a Knight of the Skyward Eye and a Knight of the White Orchid, are blocking, but each creature receives a -1/-1 as if they blocked my Pet. The computer still loses life as if the Pet wasn't blocked and the Pet and the computer's creatures are still alive.
I had noticed this a few times but was having a hard time tracking it down. I ended up moving the Flanking (and similar triggers) to the second half of the Declare Blockers Step and it looks like all is well again. For whatever reason, halfway through blocking the blocking decision would retrigger, and blocking assignments would change.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Phase Work

Postby Chris H. » 12 Nov 2010, 16:07

friarsol wrote:Gotcha. The crowdedness was part of the reason I removed the Spell/Abilities line. Combining the first two lines is a cosmetic/non-coding issue that can easily be added back in.
I had separated them because things were too jumbled previously.

We can come to a consensus how the message should be listed since it's only ever displayed for the player. We should get a PM to be in charge of this type of stuff.

It's not tough to put in Human priority during EOT. If anyone wants to try it out feel free to change this section of code in InputControl to:

Code: Select all
else if(phase.equals(Constant.Phase.End_Of_Turn)){
   if (playerTurn.isHuman()){
      //AllZone.Computer.getComputer().end_of_turn();
      //return null;
   }
   else if (priority.isComputer()){
      // AI passes priority in his end of turn phase to player automatically
      AllZone.Phase.passPriority();
      return null;
   }
}
Lemme know if there's any issues with this and I'll dig into it.
`

During some testing I discovered that Wall of Reverence puts up an AllZone.Display.getChoiceOptional() dialog during the Human's end of turn phase. Without your code mod it appears to show up during the Human's main 2 phase.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Phase Work

Postby friarsol » 12 Nov 2010, 16:15

It looks like what's happening is that this is always triggering in EOT, but the Input is still stuck on the previous phase, and doesn't update itself. However, this is enough proof that the EOT phase for the player is necessary, so I'll push an update in here now.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Phase Work

Postby timmermac » 13 Nov 2010, 14:52

When a forced discard happens due to too many cards in hand, and the card chosen to discard has a madness cost, the game gets to a point where there's nothing that is allowable. screenshot attached.
Attachments
Forge Screenshot 1.JPG
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Phase Work

Postby friarsol » 13 Nov 2010, 15:14

timmermac wrote:When a forced discard happens due to too many cards in hand, and the card chosen to discard has a madness cost, the game gets to a point where there's nothing that is allowable. screenshot attached.
Hmm.. Your right. I'll see what the rules have to say about that and follow that course of action. I think it may be something like "empty the stack until a new phase would happen, and then have another cleanup phase"
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 65 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 65 users online :: 0 registered, 0 hidden and 65 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 65 guests

Login Form