summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d
diff options
context:
space:
mode:
authorMittendrein Markus <maxmitti@gmx.net>2016-02-14 23:04:19 +0100
committerMittendrein Markus <maxmitti@gmx.net>2016-02-14 23:04:19 +0100
commit6573021f13f21f11a981439bdf2dc8070f25b68c (patch)
tree0ed3cedc947c6a329dd0fe1c266ad3b047cbe0bd /TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d
parent3b6d7c535d35470de849890e747dcbc428c6c60d (diff)
downloadtempelschubsen-6573021f13f21f11a981439bdf2dc8070f25b68c.tar.gz
tempelschubsen-6573021f13f21f11a981439bdf2dc8070f25b68c.zip
Show selector for deflection and stoneshield, but only if targets are available
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d')
-rw-r--r--TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c4
1 files changed, 3 insertions, 1 deletions
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))