From 6573021f13f21f11a981439bdf2dc8070f25b68c Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Sun, 14 Feb 2016 23:04:19 +0100 Subject: Show selector for deflection and stoneshield, but only if targets are available --- .../Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'TemplePushing.c4s/Misc.c4d') diff --git a/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c index e1740ff..fcaac0d 100644 --- a/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c +++ b/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c @@ -8,7 +8,9 @@ func Activate(pCaster,pRealcaster) if(!pClonk) pClonk=pCaster; // Auswählen wenn möglich - if (pCaster->~DoSpellSelect(this,300)) return 1; + var selector; + if ((selector = pClonk->~DoSpellSelect(this,300,pCaster)) && selector->CountTargets() > 1) return 1; + if (selector) RemoveObject(selector); // Clonk kann nicht auswählen: Clonk bekommst selbst ein Schild if (SelectorTarget(pClonk)) -- cgit v1.2.3-54-g00ecf