mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
remove unneeded code in Trigger_Taps.getCopy (I had only added it to this trigger. The rest of the Trigger classes do not need this change.)
This commit is contained in:
@@ -18,14 +18,15 @@ public class Trigger_Taps extends Trigger {
|
|||||||
*
|
*
|
||||||
* @param params a {@link java.util.HashMap} object.
|
* @param params a {@link java.util.HashMap} object.
|
||||||
* @param host a {@link forge.Card} object.
|
* @param host a {@link forge.Card} object.
|
||||||
|
* @param intrinsic a boolean
|
||||||
*/
|
*/
|
||||||
public Trigger_Taps(HashMap<String, String> params, Card host, boolean intrinsic) {
|
public Trigger_Taps(final HashMap<String, String> params, final Card host, final boolean intrinsic) {
|
||||||
super(params, host, intrinsic);
|
super(params, host, intrinsic);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public boolean performTest(java.util.Map<String, Object> runParams2) {
|
public final boolean performTest(final java.util.Map<String, Object> runParams2) {
|
||||||
Card tapper = (Card) runParams2.get("Card");
|
Card tapper = (Card) runParams2.get("Card");
|
||||||
|
|
||||||
if (mapParams.containsKey("ValidCard")) {
|
if (mapParams.containsKey("ValidCard")) {
|
||||||
@@ -39,21 +40,20 @@ public class Trigger_Taps extends Trigger {
|
|||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public Trigger getCopy() {
|
public final Trigger getCopy() {
|
||||||
Trigger copy = new Trigger_Taps(mapParams, hostCard, isIntrinsic);
|
Trigger copy = new Trigger_Taps(mapParams, hostCard, isIntrinsic);
|
||||||
if (overridingAbility != null) {
|
if (overridingAbility != null) {
|
||||||
copy.setOverridingAbility(overridingAbility);
|
copy.setOverridingAbility(overridingAbility);
|
||||||
}
|
}
|
||||||
copy.setName(name);
|
copy.setName(name);
|
||||||
copy.setID(ID);
|
copy.setID(ID);
|
||||||
copy.setSuppressed(suppressed);
|
|
||||||
|
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public void setTriggeringObjects(SpellAbility sa) {
|
public final void setTriggeringObjects(final SpellAbility sa) {
|
||||||
sa.setTriggeringObject("Card", runParams.get("Card"));
|
sa.setTriggeringObject("Card", runParams.get("Card"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user