ID:915013
 
Code:
            if(M.combolist.len > 0 && M.stunned)
for(var/A in M.combolist)
if(findtext(A, "swe"))
if(A == M.combolist[1])
damage -= round((user.combocount/100)*damage)
user.Melee_Attack(user, M, damage, 4, "sweep")
user.combocount += 15
M.combolist.Remove(A)
break



Problem description:

Basically in my creation there is a combo system that you have to do certain attacks in an order this is stored in a list for which attacks.

Sometimes after an attack and removing the first attack in the list one of the attacks moves in the list mixing up the order..

for example the above code is for a sweep but if you do a right punch next the list will move it to the back of list for some odd reason... am i removing it wrong when calling it?

EXAMPLE:
* Raditz retracts their right arm... (dodge left, parry high)

<95%> / <984/984> vs. <1,200>
Your rocket punch hits Raditz! (116)
Raditz is stunned!
Combo (p r,p r,rh,p r)
p r
You retract your right arm...

Your right punch hits Raditz! (113)
Combo (p r,p r,rh)
<94%> / <984/984> vs. <971>

p r
You retract your right arm...

Your right punch hits Raditz! (94)
(+3) combat bonus!
Combo (p r,rh)
<93%> / <984/987> vs. <877>

p r
You retract your right arm...

Your right punch hits Raditz! (70)
Combo (rh)
<94%> / <984/987> vs. <807>

rh
You begin a high sweep motion...

Your roundhouse hits Raditz! (74)
(+7) combat bonus!
Combo ()


notice the initial combo order and how roundhouse became the last..