mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
Implement Heart Wolf
This commit is contained in:
parent
eb85146367
commit
1b33f99cec
4 changed files with 117 additions and 1 deletions
|
|
@ -31,7 +31,9 @@ public class SacrificeSourceEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
System.out.println("Source class: "+ source.getClass().getName());
|
||||
MageObject sourceObject = source.getSourceObjectIfItStillExists(game);
|
||||
System.out.println("Source object: "+sourceObject);
|
||||
if (sourceObject == null) {
|
||||
// Check if the effect was installed by the spell the source was cast by (e.g. Necromancy), if not don't sacrifice the permanent
|
||||
if (source.getSourceObject(game) instanceof Spell) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue