forked from External/mage
remove redundant null checks before instanceof
This commit is contained in:
parent
d3aea0270c
commit
f04d7c9b03
72 changed files with 184 additions and 186 deletions
|
|
@ -54,7 +54,7 @@ public class CopyTargetSpellEffect extends OneShotEffect {
|
|||
if (spell != null) {
|
||||
StackObject newStackObject = spell.createCopyOnStack(game, source, useController ? spell.getControllerId() : source.getControllerId(), true);
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null && newStackObject != null && newStackObject instanceof Spell) {
|
||||
if (player != null && newStackObject instanceof Spell) {
|
||||
String activateMessage = ((Spell) newStackObject).getActivatedMessage(game);
|
||||
if (activateMessage.startsWith(" casts ")) {
|
||||
activateMessage = activateMessage.substring(6);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue