summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c
diff options
context:
space:
mode:
authorMittendrein Markus <maxmitti@gmx.net>2016-03-03 14:04:52 +0100
committerMittendrein Markus <maxmitti@gmx.net>2016-03-03 14:04:52 +0100
commit2cd381b339ac1186bc426817e33ec3a99a3a99c2 (patch)
tree9480cefa981ddbe60c9aba516e7fdb0ea9511ac3 /TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c
parent2c2af9b642ccc11b5ea6f7514ae0843cae03b69e (diff)
downloadtempelschubsen-2cd381b339ac1186bc426817e33ec3a99a3a99c2.tar.gz
tempelschubsen-2cd381b339ac1186bc426817e33ec3a99a3a99c2.zip
Let Lavashot hit targets from the beginning on
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c')
-rw-r--r--TemplePushing.c4s/Misc.c4d/AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c15
1 files changed, 7 insertions, 8 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 06c981f..4304e39 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
@@ -108,14 +108,13 @@ private func Advance()
// Objektanziehung
iVtx = GetVertexNum()-1; iVtxX = GetVertex(iVtx, 0); iVtxY = GetVertex(iVtx, 1);
var obj;
- if (iVtx>7)
- while (obj = FindObject( 0, iVtxX-GetX()-25, iVtxY-GetY()-25, 50, 50, OCF_Alive(), 0,0, NoContainer(),obj ) )
- {
- if(obj==pCaster) continue;
- if(!PathFree(iVtxX, iVtxY, GetX(obj), GetY(obj))) continue;
- Attraction(obj);
- break;
- }
+ while (obj = FindObject( 0, iVtxX-GetX()-25, iVtxY-GetY()-25, 50, 50, OCF_Alive(), 0,0, NoContainer(),obj ) )
+ {
+ if(obj==pCaster) continue;
+ if(!PathFree(iVtxX, iVtxY, GetX(obj), GetY(obj))) continue;
+ Attraction(obj);
+ break;
+ }
Timer();
// Weiter