It is currently 25 Apr 2024, 20:15
   
Text Size

Version 04/04 and multiple blockers

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

Re: Version 04/04 and multiple blockers

Postby DennisBergkamp » 13 Apr 2009, 19:59

By the way, I think I've figured it out :) Rares, I guess you might be using the non-resizable version of MTGForge ? I'm getting the same problem when I use that setting, since that setting does use GUI_Multiple_Blockers! My previous fix should fix it, except GUI_Display2.java needs to be updated as well:

On line 37:
Code: Select all
public void assignDamage(Card attacker, CardList blockers, int damage)
{
      new Gui_MultipleBlockers(attacker, blockers, damage, this);
}
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Version 04/04 and multiple blockers

Postby mtgrares » 13 Apr 2009, 20:00

Yes I uses "non-resizable", I always do so.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Version 04/04 and multiple blockers

Postby mtgrares » 13 Apr 2009, 20:03

Bug fixing is hard work, lol. "One small step for DennisBergkamp, one giant leap for mankind."
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Version 04/04 and multiple blockers

Postby DennisBergkamp » 13 Apr 2009, 20:03

Ahh, yes, so that has to be the problem :)
The code (GUI_Multiple_Blockers.java and small fix in GUIDisplay2.java) I posted should fix the damage assignment to multiple blockers.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to Forge

Who is online

Users browsing this forum: No registered users and 100 guests


Who is online

In total there are 100 users online :: 0 registered, 0 hidden and 100 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 100 guests

Login Form