diff --git a/zone/perl_npc.cpp b/zone/perl_npc.cpp index bbefef2ed..f06623f4a 100644 --- a/zone/perl_npc.cpp +++ b/zone/perl_npc.cpp @@ -2343,7 +2343,7 @@ XS(XS_NPC_AddRangedProc) { if(THIS == NULL) Perl_croak(aTHX_ "THIS is NULL, avoiding crash."); - THIS->AddDefensiveProc(spell_id,chance); + THIS->AddRangedProc(spell_id,chance); } XSRETURN_EMPTY; } @@ -2368,7 +2368,7 @@ XS(XS_NPC_AddDefensiveProc) { if(THIS == NULL) Perl_croak(aTHX_ "THIS is NULL, avoiding crash."); - THIS->AddProcToWeapon(spell_id, true, chance); + THIS->AddDefensiveProc(spell_id,chance); } XSRETURN_EMPTY; } diff --git a/zone/special_attacks.cpp b/zone/special_attacks.cpp index c0844c2ac..faae0e3b1 100644 --- a/zone/special_attacks.cpp +++ b/zone/special_attacks.cpp @@ -1186,7 +1186,6 @@ float Mob::GetRangeDistTargetSizeMod(Mob* other) void NPC::RangedAttack(Mob* other) { - if (!other) return; //make sure the attack and ranged timers are up @@ -1306,7 +1305,7 @@ void NPC::DoRangedAttackDmg(Mob* other, bool Launch, int16 damage_mod, int16 cha if (TotalDmg > 0) CommonOutgoingHitSuccess(other, TotalDmg, skillInUse); - else + else if (TotalDmg < -4) TotalDmg = -5; if (TotalDmg > 0)