From 3c9dc104b3673e5480af3ad4c3d63570c2941463 Mon Sep 17 00:00:00 2001 From: Maikel de Vries Date: Sun, 14 Jan 2018 15:26:27 +0100 Subject: [PATCH] defense boom attack: fix destruction tracking --- .../Goals.ocd/Defense.ocd/DefenseBoomAttack.ocd/Script.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/planet/Objects.ocd/Goals.ocd/Defense.ocd/DefenseBoomAttack.ocd/Script.c b/planet/Objects.ocd/Goals.ocd/Defense.ocd/DefenseBoomAttack.ocd/Script.c index 511d8dd82..a79061ba0 100644 --- a/planet/Objects.ocd/Goals.ocd/Defense.ocd/DefenseBoomAttack.ocd/Script.c +++ b/planet/Objects.ocd/Goals.ocd/Defense.ocd/DefenseBoomAttack.ocd/Script.c @@ -277,8 +277,7 @@ private func DoFireworks(int killed_by) rider->SetAction("Walk"); SetRider(nil); } - // Notify defense goal for reward and score. - GameCallEx("OnRocketDeath", this, killed_by); + SetKiller(killed_by); Fireworks(); Explode(40); return; @@ -286,6 +285,8 @@ private func DoFireworks(int killed_by) public func Destruction() { + // Notify defense goal for reward and score. + GameCallEx("OnRocketDeath", this, GetKiller()); // Notify friendly fire rule. GameCallEx("OnDestructionRuleNoFF", this); }