From 853eeae473d3bd8c5ae7a0fde1e4dfd97bd0c57e Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Sat, 13 Feb 2016 00:34:23 +0100 Subject: Dragonbreath doesn't incinerate the caster --- TemplePushing.c4s/System.c4g/Clonk.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'TemplePushing.c4s/System.c4g/Clonk.c') diff --git a/TemplePushing.c4s/System.c4g/Clonk.c b/TemplePushing.c4s/System.c4g/Clonk.c index 09c4b20..cad2f5f 100644 --- a/TemplePushing.c4s/System.c4g/Clonk.c +++ b/TemplePushing.c4s/System.c4g/Clonk.c @@ -10,6 +10,7 @@ local removeOnDeath; protected func Initialize() { AddEffect("CheckStuck2", this, 20, 1, this); + AddEffect("CheckBurn", this, 101, 0, this); SetPhysical("Fight", 75000, PHYS_Temporary, this); SetPhysical("Scale", 60000, PHYS_Temporary, this); SetPhysical("Hangle", 60000, PHYS_Temporary, this); @@ -101,3 +102,8 @@ private func FxCheckStuck2Timer(object pTarget, int iEffectNumber, int iEffectTi if ((d == -1 && GetComDir(pTarget) != COMD_Left) || (d == 1 && GetComDir(pTarget) != COMD_Right)) SetComDir(COMD_Up, pTarget); } } + +func FxCheckBurnEffect(string newEffectName, object target, int effectNumber, int newEffectNumber, int causedBy, bool fBlasted, object incineratingObject) +{ + if (newEffectName == "Fire" && incineratingObject && incineratingObject->~QueryIncinerateObject(target)) return FX_Effect_Deny; +} -- cgit v1.2.3-54-g00ecf