|
@@ -598,7 +598,7 @@ public class Demonic : MoveCharacter
|
|
|
attackTarget = targetCharacter;
|
|
attackTarget = targetCharacter;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private int[] origDamages;
|
|
|
|
|
|
|
+ private List<AttackInfo> origAttackInfos = new List<AttackInfo>();
|
|
|
private float origAttackTime;
|
|
private float origAttackTime;
|
|
|
private int count;
|
|
private int count;
|
|
|
public GameObject attributeUpEffect;
|
|
public GameObject attributeUpEffect;
|
|
@@ -615,12 +615,13 @@ public class Demonic : MoveCharacter
|
|
|
}
|
|
}
|
|
|
curUpEffect.SetActive(true);
|
|
curUpEffect.SetActive(true);
|
|
|
count = attack2Infos.Count;
|
|
count = attack2Infos.Count;
|
|
|
- origDamages = new int[count];
|
|
|
|
|
for (int i = 0; i < count; i++)
|
|
for (int i = 0; i < count; i++)
|
|
|
{
|
|
{
|
|
|
- int d = attack2Infos[i].damage;
|
|
|
|
|
- origDamages[i] = d;
|
|
|
|
|
- attack2Infos[i].setDamage((int)(d * (1 + upDamageDegree)));
|
|
|
|
|
|
|
+ AttackInfo a = attack2Infos[i];
|
|
|
|
|
+ origAttackInfos.Add(a);
|
|
|
|
|
+ int d = a.damage;
|
|
|
|
|
+ a.damage = (int)(d * (1 + upDamageDegree));
|
|
|
|
|
+ attack2Infos[i] = a;
|
|
|
}
|
|
}
|
|
|
origAttackTime = totalAttack2Time;
|
|
origAttackTime = totalAttack2Time;
|
|
|
totalAttack2Time = totalAttack2Time / (1 + upAttackSpeedDegree);
|
|
totalAttack2Time = totalAttack2Time / (1 + upAttackSpeedDegree);
|
|
@@ -632,7 +633,7 @@ public class Demonic : MoveCharacter
|
|
|
curUpEffect.SetActive(false);
|
|
curUpEffect.SetActive(false);
|
|
|
for (int i = 0; i < count; i++)
|
|
for (int i = 0; i < count; i++)
|
|
|
{
|
|
{
|
|
|
- attack2Infos[i].setDamage(origDamages[i]);
|
|
|
|
|
|
|
+ attack2Infos[i] = origAttackInfos[i];
|
|
|
}
|
|
}
|
|
|
totalAttack2Time = origAttackTime;
|
|
totalAttack2Time = origAttackTime;
|
|
|
hasUp = false;
|
|
hasUp = false;
|