mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-15 17:02:26 +00:00
fix
This commit is contained in:
parent
e04496188b
commit
8dfd61bbcf
@ -296,7 +296,6 @@ Mob::Mob(const char* in_name,
|
|||||||
ProjectileAtk[i].ammo_slot = 0;
|
ProjectileAtk[i].ammo_slot = 0;
|
||||||
ProjectileAtk[i].skill = 0;
|
ProjectileAtk[i].skill = 0;
|
||||||
ProjectileAtk[i].speed_mod = 0.0f;
|
ProjectileAtk[i].speed_mod = 0.0f;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&itembonuses, 0, sizeof(StatBonuses));
|
memset(&itembonuses, 0, sizeof(StatBonuses));
|
||||||
|
|||||||
@ -1023,8 +1023,7 @@ bool Mob::TryProjectileAttack(Mob* other, const Item_Struct *item, SkillUseTypes
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
speed = 2.0f;
|
|
||||||
Shout("Speed %.2f", speed);
|
|
||||||
if (slot < 0)
|
if (slot < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
@ -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.
|
//Make sure there is an avialable bolt to be cast.
|
||||||
for (int i = 0; i < MAX_SPELL_PROJECTILE; i++) {
|
for (int i = 0; i < MAX_SPELL_PROJECTILE; i++) {
|
||||||
if (ProjectileAtk[slot].target_id == 0){
|
if (ProjectileAtk[i].target_id == 0){
|
||||||
slot = i;
|
slot = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user