Fix for NPC ranged attacks not allowing for multiple hits

if set by special attack 11, also changed paramater 0 (which was
incorrectly set as both 'amount of attacks' and 'min range'
0 = amount attacks
4 = min attack range

Fix to spell directional effect targeting.
This commit is contained in:
KayenEQ
2014-08-22 00:35:14 -04:00
parent 2e80e56af1
commit 8394cc9e2b
3 changed files with 105 additions and 104 deletions
+1 -1
View File
@@ -2143,7 +2143,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, uint16 slot, uint16
{
if(CheckLosFN((*iter)) || spells[spell_id].npc_no_los){
(*iter)->CalcSpellPowerDistanceMod(spell_id, 0, this);
SpellOnTarget(spell_id, spell_target, false, true, resist_adjust);
SpellOnTarget(spell_id, (*iter), false, true, resist_adjust);
}
}
}