* River Kelpie - Fixed that the first ability did not always trigger as intended.

This commit is contained in:
LevelX2 2015-05-01 17:37:57 +02:00
parent e131caa453
commit 85d7f099bd
9 changed files with 68 additions and 29 deletions

View file

@ -76,7 +76,7 @@ public class AbilitiesImpl<T extends Ability> extends ArrayList<T> implements Ab
}
if (!(ability instanceof SpellAbility || ability instanceof PlayLandAbility)) {
String rule = ability.getRule();
if (rule.length() > 3) {
if (rule != null && rule.length() > 3) {
rule = Character.toUpperCase(rule.charAt(0)) + rule.substring(1);
if (ability.getRuleAtTheTop()) {
rules.add(0, rule);

View file

@ -95,7 +95,7 @@ public abstract class GameTinyLeadersImpl extends GameImpl{
getState().getWatchers().add(watcher);
watcher.addCardInfoToCommander(this);
} else {
throw new UnknownError("Commander card could not be created");
throw new UnknownError("Commander card could not be created. Name: [" + player.getMatchPlayer().getDeck().getName() +"]");
}
}

View file

@ -118,6 +118,7 @@ public class GameEvent {
playerId player that casts the spell
amount not used for this event
flag not used for this event
zone zone the spell is cast from
*/
SPELL_CAST,