mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
* River Kelpie - Fixed that the first ability did not always trigger as intended.
This commit is contained in:
parent
e131caa453
commit
85d7f099bd
9 changed files with 68 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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() +"]");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue