- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Dictionary d =
new Hashtable()
Bundle bundle;bundle.getHeaders()
new Properties()
- Smart code suggestions by Codota
}
@Override public boolean apply(Game game, Ability source) { Permanent enchantment = game.getPermanent(source.getSourceId()); if (enchantment != null) { Permanent permanentattachedTo = game.getPermanent(enchantment.getAttachedTo()); if (permanentattachedTo != null) { Player player = game.getPlayer(permanentattachedTo.getControllerId()); if (player != null) { checkToFirePossibleEvents(getMana(game, source), game, source); player.getManaPool().addMana(getMana(game, source), game, source); return true; } } } return false; }