diff options
Diffstat (limited to 'TemplePushing.c4s')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Scroll.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/Scroll.c b/TemplePushing.c4s/System.c4g/Scroll.c index 6156e26..f79bb63 100644 --- a/TemplePushing.c4s/System.c4g/Scroll.c +++ b/TemplePushing.c4s/System.c4g/Scroll.c @@ -14,6 +14,7 @@ protected func Initialize() public func SpellFailed(id idSpell, object pAimingClonk) { // Spell canceled? Give back the scroll + SetActionTargets(0, 0, this); SetSpell(idSpell); if(pAimingClonk && !pAimingClonk->~RejectCollect(GetID(this), this)) { @@ -27,3 +28,14 @@ global func SetScrollSpells(array spells) { SCRL_spells = spells; } + +protected func WannaRemove() +{ + // manche Zauber hängen gerne Effekte an den Caster + if(!(GetEffectCount(0,this()) - GetEffectCount("FadeOut", this)) && !pAimingClonk) RemoveObject(); +} + +public func AvoidFadeOut() +{ + return GetAction(this) == "WannaRemove"; +} |
