summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s
diff options
context:
space:
mode:
authorMittendrein Markus <maxmitti@gmx.net>2016-02-15 22:38:15 +0100
committerMittendrein Markus <maxmitti@gmx.net>2016-02-15 22:38:15 +0100
commit5f2a35e2c0114ae07a9aab8389c909d441b0e068 (patch)
tree77b3e0f6e5b83fc6324837ec26d9c047994a8947 /TemplePushing.c4s
parente7a0b1bfcd41012d39541a80299ee7c4ce45456c (diff)
downloadtempelschubsen-5f2a35e2c0114ae07a9aab8389c909d441b0e068.tar.gz
tempelschubsen-5f2a35e2c0114ae07a9aab8389c909d441b0e068.zip
Deflector and Stoneshield don't stop caster anymore if no selector is activated
Diffstat (limited to 'TemplePushing.c4s')
-rw-r--r--TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c2
-rw-r--r--TemplePushing.c4s/System.c4g/Stoneshield.c2
2 files changed, 4 insertions, 0 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 fcaac0d..130af16 100644
--- a/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c
+++ b/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Deflection.c4d/Script.c
@@ -8,9 +8,11 @@ func Activate(pCaster,pRealcaster)
if(!pClonk) pClonk=pCaster;
// Auswählen wenn möglich
+ var comDir = pClonk->GetComDir();
var selector;
if ((selector = pClonk->~DoSpellSelect(this,300,pCaster)) && selector->CountTargets() > 1) return 1;
if (selector) RemoveObject(selector);
+ pClonk->SetComDir(comDir);
// Clonk kann nicht auswählen: Clonk bekommst selbst ein Schild
if (SelectorTarget(pClonk))
diff --git a/TemplePushing.c4s/System.c4g/Stoneshield.c b/TemplePushing.c4s/System.c4g/Stoneshield.c
index 885b921..0aabbac 100644
--- a/TemplePushing.c4s/System.c4g/Stoneshield.c
+++ b/TemplePushing.c4s/System.c4g/Stoneshield.c
@@ -16,9 +16,11 @@ func Activate(pCaster,pRealcaster)
}
// Auswählen wenn möglich
+ var comDir = pClonk->GetComDir();
var selector;
if ((selector = pClonk->~DoSpellSelect(this,300,pCaster)) && (selector->CountTargets() > 1 || !SelectorTarget(pClonk))) return 1;
if (selector) RemoveObject(selector);
+ pClonk->SetComDir(comDir);
// Clonk kann nicht auswählen: Clonk bekommst selbst ein Schild
if (SelectorTarget(pClonk))