From dcae2a1b34211eea3109cb2d1fc7b60d2e811dec Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 3 Jan 2019 00:20:12 +0100 Subject: Fix scrolls randomly and seldomly tumbling their caster --- TemplePushing.c4s/System.c4g/Scroll.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/TemplePushing.c4s/System.c4g/Scroll.c b/TemplePushing.c4s/System.c4g/Scroll.c index 871245f..d3989b4 100644 --- a/TemplePushing.c4s/System.c4g/Scroll.c +++ b/TemplePushing.c4s/System.c4g/Scroll.c @@ -16,6 +16,7 @@ public func SpellFailed(id idSpell, object pAimingClonk) { // Spell canceled? Give back the scroll SetVisibility(VIS_All); + SetCategory(GetCategory(0, GetID())); SetSpell(idSpell); if(pAimingClonk && !pAimingClonk->~RejectCollect(GetID(this), this)) { @@ -44,7 +45,12 @@ public func AvoidFadeOut() private func DoMagic(object pByClonk) { SetVisibility(VIS_Owner | VIS_Allies, this); - return _inherited(pByClonk); + var ret = _inherited(pByClonk); + if (GetAction(this) == "WannaRemove") + { + SetCategory(C4D_StaticBack); + } + return ret; } func SetSpell(id spell) -- cgit v1.2.3-54-g00ecf