From 8dfd61bbcf71e1447a784615413df1e335c21105 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Sun, 30 Nov 2014 01:58:23 -0500 Subject: [PATCH] fix --- zone/mob.cpp | 1 - zone/special_attacks.cpp | 3 +-- zone/spell_effects.cpp | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index afb9889fe..e56f3839c 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -296,7 +296,6 @@ Mob::Mob(const char* in_name, ProjectileAtk[i].ammo_slot = 0; ProjectileAtk[i].skill = 0; ProjectileAtk[i].speed_mod = 0.0f; - } memset(&itembonuses, 0, sizeof(StatBonuses)); diff --git a/zone/special_attacks.cpp b/zone/special_attacks.cpp index 481599bac..cf6a83c80 100644 --- a/zone/special_attacks.cpp +++ b/zone/special_attacks.cpp @@ -1023,8 +1023,7 @@ bool Mob::TryProjectileAttack(Mob* other, const Item_Struct *item, SkillUseTypes break; } } - speed = 2.0f; - Shout("Speed %.2f", speed); + if (slot < 0) return false; diff --git a/zone/spell_effects.cpp b/zone/spell_effects.cpp index 79fe70e00..d3ef1145d 100644 --- a/zone/spell_effects.cpp +++ b/zone/spell_effects.cpp @@ -6425,7 +6425,7 @@ bool Mob::TrySpellProjectile(Mob* spell_target, uint16 spell_id, float speed){ //Make sure there is an avialable bolt to be cast. for (int i = 0; i < MAX_SPELL_PROJECTILE; i++) { - if (ProjectileAtk[slot].target_id == 0){ + if (ProjectileAtk[i].target_id == 0){ slot = i; break; } @@ -6433,7 +6433,7 @@ bool Mob::TrySpellProjectile(Mob* spell_target, uint16 spell_id, float speed){ if (slot < 0) return false; - + if (CheckLosFN(spell_target)) { float speed_mod = speed * 0.45f; //Constant for adjusting speeds to match calculated impact time.