Implement Heart Wolf

This commit is contained in:
Noah Gleason 2018-06-23 19:08:06 -04:00
parent eb85146367
commit 1b33f99cec
No known key found for this signature in database
GPG key ID: EC030EC6B0650A40
4 changed files with 117 additions and 1 deletions

View file

@ -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) {