summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Games/SMTNocturne/Demons.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Games/SMTNocturne/Demons.pm b/lib/Games/SMTNocturne/Demons.pm
index 70f861e..29f382e 100644
--- a/lib/Games/SMTNocturne/Demons.pm
+++ b/lib/Games/SMTNocturne/Demons.pm
@@ -90,6 +90,8 @@ sub _normal_fusion {
my $new_type = Games::SMTNocturne::Demons::FusionChart::fuse(
$demon1->type, $demon2->type
);
+ return unless $new_type;
+
my $new_level = ($demon1->level + $demon2->level) / 2;
return Games::SMTNocturne::Demons::Demon->from_type_and_level(