From 2cd381b339ac1186bc426817e33ec3a99a3a99c2 Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Thu, 3 Mar 2016 14:04:52 +0100 Subject: Let Lavashot hit targets from the beginning on --- .../AdditionalSpells.c4d/Lavashot.c4d/Shot.c4d/Script.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'TemplePushing.c4s/Misc.c4d') 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 -- cgit v1.2.3-54-g00ecf