13 new cards

[SOK] Descendant of Soramaro
[BOK] Kami of theHonoredDead
[CHK] Heartbeat of Spring / Jugan, the Rising Star / Kitsune Riftwalker / Mystic Restraints / Nezumi Bone Reader / Nine Ringed Bo / Samurai of the Pale Curtain / Sensei Golden-Tail / Tenza Godo's Maul / Wicked Akuba / Yosei the Morning Star

Fixed cards
Kumano Master Yamabushi - renamed file to correct name
Myojin of Infinite Rage - fixed toughness value
UnearthlyBlizzard - reworked text

Framework changes
EquippedMatchesFilterCondition - new, To grant equipment boosts conditional
PlayerDamagedByWatcher - new, Watcher to track damaged players
CardsInControllerHandCount - fixed potential null pointer exception
LookLibraryControllerEffect - improved to handle DynamicValues
This commit is contained in:
LevelX 2012-01-08 00:04:52 +01:00
parent 7207bc0be6
commit f073ee299d
20 changed files with 1710 additions and 20 deletions

View file

@ -8,9 +8,11 @@ import mage.players.Player;
public class CardsInControllerHandCount implements DynamicValue {
@Override
public int calculate(Game game, Ability sourceAbility) {
Player controller = game.getPlayer(sourceAbility.getControllerId());
if (controller != null) {
return controller.getHand().size();
if (sourceAbility != null) {
Player controller = game.getPlayer(sourceAbility.getControllerId());
if (controller != null) {
return controller.getHand().size();
}
}
return 0;
}