summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-01-03 00:20:12 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2019-01-23 23:50:09 +0100
commitdcae2a1b34211eea3109cb2d1fc7b60d2e811dec (patch)
tree5357ebc21a689307edada00b53d96f24d61e1dd7 /TemplePushing.c4s
parent5badcdda466313f7ca34af1e6d0779dc17c6eee9 (diff)
downloadtempelschubsen-dcae2a1b34211eea3109cb2d1fc7b60d2e811dec.tar.gz
tempelschubsen-dcae2a1b34211eea3109cb2d1fc7b60d2e811dec.zip
Fix scrolls randomly and seldomly tumbling their caster
Diffstat (limited to 'TemplePushing.c4s')
-rw-r--r--TemplePushing.c4s/System.c4g/Scroll.c8
1 files changed, 7 insertions, 1 deletions
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)