diff options
Diffstat (limited to 'TemplePushing.c4s/System.c4g')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Aimer.c | 8 | ||||
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Scroll.c | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/TemplePushing.c4s/System.c4g/Aimer.c b/TemplePushing.c4s/System.c4g/Aimer.c index 30a30e9..381aa58 100644 --- a/TemplePushing.c4s/System.c4g/Aimer.c +++ b/TemplePushing.c4s/System.c4g/Aimer.c @@ -44,4 +44,10 @@ public func Create(object pCommandObject, object pMenuObj, int iStartAngle) var ret = _inherited(pCommandObject, pMenuObj, iStartAngle); targetDir = pTargetObject->GetDir(); return ret; -}
\ No newline at end of file +} + +public func Initialize() +{ + SetVisibility(VIS_Owner | VIS_Allies); + return _inherited(...); +} diff --git a/TemplePushing.c4s/System.c4g/Scroll.c b/TemplePushing.c4s/System.c4g/Scroll.c index f79bb63..3195abc 100644 --- a/TemplePushing.c4s/System.c4g/Scroll.c +++ b/TemplePushing.c4s/System.c4g/Scroll.c @@ -15,6 +15,7 @@ public func SpellFailed(id idSpell, object pAimingClonk) { // Spell canceled? Give back the scroll SetActionTargets(0, 0, this); + SetVisibility(VIS_All); SetSpell(idSpell); if(pAimingClonk && !pAimingClonk->~RejectCollect(GetID(this), this)) { @@ -39,3 +40,9 @@ public func AvoidFadeOut() { return GetAction(this) == "WannaRemove"; } + +private func DoMagic(object pByClonk) +{ + SetVisibility(GetVisibility(pByClonk), this); + return _inherited(pByClonk); +} |
