summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Misc.c4d
diff options
context:
space:
mode:
authorMittendrein Markus <maxmitti@gmx.net>2016-03-04 14:28:40 +0100
committerMittendrein Markus <maxmitti@gmx.net>2016-03-04 14:28:40 +0100
commita76c4082acbc908adf47760c2877d33eac9594e2 (patch)
tree21697165b54a456b0744bb9185a66a57818d37a2 /TemplePushing.c4s/Misc.c4d
parent02e1a77e7e7679c7f674366ded95a9d6db48e9e4 (diff)
downloadtempelschubsen-a76c4082acbc908adf47760c2877d33eac9594e2.tar.gz
tempelschubsen-a76c4082acbc908adf47760c2877d33eac9594e2.zip
Magic lightning and lavashot don't hit allies near the caster
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d')
-rw-r--r--TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c
index 4304e39..8bb4d7c 100644
--- a/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c
+++ b/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c
@@ -110,7 +110,7 @@ private func Advance()
var obj;
while (obj = FindObject( 0, iVtxX-GetX()-25, iVtxY-GetY()-25, 50, 50, OCF_Alive(), 0,0, NoContainer(),obj ) )
{
- if(obj==pCaster) continue;
+ if(obj==pCaster || (iVtx < 4 && !Hostile(GetOwner(pCaster), GetOwner(obj)))) continue;
if(!PathFree(iVtxX, iVtxY, GetX(obj), GetY(obj))) continue;
Attraction(obj);
break;