From dc48c50da83a43ec1d5cd464a551d5d07107129b Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Tue, 8 Sep 2015 22:13:10 +0200 Subject: SetVisibility(VIS_Owner | VIS_Allies) for scrolls while aiming and for the aimer, so they can't be seen from enemies with Vertices+Entrance debug mode --- TemplePushing.c4s/System.c4g/Scroll.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'TemplePushing.c4s/System.c4g/Scroll.c') 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); +} -- cgit v1.2.3-54-g00ecf