[fixed]Medomai the Ageless
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
[fixed]Medomai the Ageless
by Korath » 11 Dec 2015, 20:25
Medomai the Ageless isn't even sort of correct:
No screenshot because Windows is being uncooperative, sorry, and my savegame wouldn't work for anyone else; but it looks like it's been broken the same way the entire time since its introduction in PtT.
- If you cast a Time Walk before combat, it can't attack that turn or in the extra one.
- If you don't control it when the extra-turn effect is created - either it hasn't been cast yet, or an opponent has control, or it's been Mirrorweave'd into some other creature, or you blink it with something like Flicker afterwards - it can attack during the extra turn. (Unless summoning sick, of course, so give it haste or get control back before the extra turn begins or whatever.)
- If you don't have an upkeep (from Eon Hub or Gibbering Descent) and get an extra turn effect, it can never attack again.
No screenshot because Windows is being uncooperative, sorry, and my savegame wouldn't work for anyone else; but it looks like it's been broken the same way the entire time since its introduction in PtT.
Last edited by drool66 on 04 Jul 2020, 03:44, edited 5 times in total.
Reason: fixed
Reason: fixed
-
Korath - DEVELOPER
- Posts: 3707
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1106 times
Re: [confirmed]Medomai the Ageless
by Gargaroz » 12 Apr 2016, 13:47
Did the "fx_generic_903" legacy card was translated in C?
What exactly it does when the "STATUS_TIMEWALK" is detected at EOT?
If I understand that, I could add a TRAP which tells us if we're in an extra turn.
What exactly it does when the "STATUS_TIMEWALK" is detected at EOT?
If I understand that, I could add a TRAP which tells us if we're in an extra turn.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
- Gargaroz
- Programmer
- Posts: 7097
- Joined: 06 Nov 2009, 11:11
- Has thanked: 82 times
- Been thanked: 595 times
Re: [confirmed]Medomai the Ageless
by Korath » 12 Apr 2016, 14:17
The relevant part of fx_generic_903() looks like:
- Code: Select all
if (inst->token_status & STATUS_TIMEWALK)
{
if (event == EVENT_CAN_SKIP_TURN && time_walk_flag == -1)
time_walk_flag = player;
if (event == EVENT_CLEANUP && !dword_4EF1B8) // This gets checked in the wrong order - EVENT_CLEANUP is set in order by card index, not timestamp, and the timewalk effect with the *newest* timestamp needs to be the one that takes precedence
{
dword_4EF1B8 |= 1 << player;
inst->token_status &= ~STATUS_PERMANENT;
}
}
- Code: Select all
while (!dword_786768 && !is_anyone_dead())
{
if (dword_4EF1B8)
{
// There's an extra turn
if (dword_4EF1B8 & 1) // human gets extra turn
{
dword_4EF1B8 = 0;
if (whose_turn == 1)
time_walk_flag = -1;
switch_phase(0); // "run_turn()" is a better name for this function
time_walk_flag = -1;
}
else // ai gets extra turn
{
dword_4EF1B8 = 0;
if (whose_turn == 0)
time_walk_flag = -1;
switch_phase(1);
time_walk_flag = -1;
}
}
else
{
// non-extra turn
switch_phase(whose_turn);
whose_turn = 1 - whose_turn;
}
}
-
Korath - DEVELOPER
- Posts: 3707
- Joined: 02 Jun 2013, 05:57
- Has thanked: 496 times
- Been thanked: 1106 times
Re: [fixed]Medomai the Ageless
by drool66 » 04 Jul 2020, 03:44
Fixed all in f9d99b7c2 ("Fix Medomai the Ageless extra turns", 2020-07-03)
The latest images for Manalink will be here.
The latest Manalink installation directory will be here. Well, not quite, anymore. Check the latest patches.
The latest Manalink installation directory will be here. Well, not quite, anymore. Check the latest patches.
-
drool66 - Programmer
- Posts: 1163
- Joined: 25 Nov 2010, 22:38
- Has thanked: 186 times
- Been thanked: 267 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 57 guests