|
@@ -1948,7 +1948,7 @@ namespace CommonAI.Zone.Instance
|
|
|
case LaunchSpell.PosType.POS_TYPE_FAN:
|
|
|
{
|
|
|
float startAngle = direction - launch.Angle / 2f;// + launch.StartAngle;
|
|
|
- float interAngle = launch.Count > 0 ? launch.Angle / (launch.Count - 1) : 0;
|
|
|
+ float interAngle = launch.Count > 1 ? launch.Angle / (launch.Count - 1) : 0;
|
|
|
for (int i = 0; i < launch.Count; i++)
|
|
|
{
|
|
|
AddSpell(fromSkillType, spell, launch, launcher, launcher,
|
|
@@ -2129,7 +2129,7 @@ namespace CommonAI.Zone.Instance
|
|
|
case LaunchSpell.PosType.POS_TYPE_FAN:
|
|
|
{
|
|
|
float startAngle = direction - launch.Angle / 2f + launch.StartAngle;
|
|
|
- float interAngle = launch.Count > 0 ? launch.Angle / (launch.Count - 1) : 0;
|
|
|
+ float interAngle = launch.Count > 1 ? launch.Angle / (launch.Count - 1) : 0;
|
|
|
for (int i = 0; i < launch.Count; i++)
|
|
|
{
|
|
|
AddSpell(fromSkillType, spell, launch, sender, sender.Launcher,
|
|
@@ -2259,7 +2259,7 @@ namespace CommonAI.Zone.Instance
|
|
|
case LaunchSpell.PosType.POS_TYPE_FAN:
|
|
|
{
|
|
|
float startAngle = sender.Direction - launch.Angle / 2f + launch.StartAngle;
|
|
|
- float interAngle = launch.Count > 0 ? launch.Angle / (launch.Count - 1) : 0;
|
|
|
+ float interAngle = launch.Count > 1 ? launch.Angle / (launch.Count - 1) : 0;
|
|
|
for (int i = 0; i < launch.Count; i++)
|
|
|
{
|
|
|
AddSpell(fromSkillType, spell, launch, sender, attacker, damage.ID, null,
|