summaryrefslogtreecommitdiffstats
path: root/lib/Games/SMTNocturne/Demons/FusionChart.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Games/SMTNocturne/Demons/FusionChart.pm')
-rw-r--r--lib/Games/SMTNocturne/Demons/FusionChart.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Games/SMTNocturne/Demons/FusionChart.pm b/lib/Games/SMTNocturne/Demons/FusionChart.pm
index ebaabf9..1454fc5 100644
--- a/lib/Games/SMTNocturne/Demons/FusionChart.pm
+++ b/lib/Games/SMTNocturne/Demons/FusionChart.pm
@@ -116,7 +116,8 @@ sub special_fusion {
if (my $target = $conditions->{target}) {
if (my $type = $target->{type}) {
- next unless fuse($demon1->type, $demon2->type) eq $type;
+ my $fused_type = fuse($demon1->type, $demon2->type);
+ next unless $fused_type && $fused_type eq $type;
}
elsif (my $name = $target->{name}) {
require Games::SMTNocturne::Demons;