mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-22 02:51:30 +00:00
Fix for perl defensive/ranged proc function
Minor fix to NPC ranged attack.
This commit is contained in:
parent
a537981ad0
commit
c8c2209617
@ -2343,7 +2343,7 @@ XS(XS_NPC_AddRangedProc) {
|
|||||||
if(THIS == NULL)
|
if(THIS == NULL)
|
||||||
Perl_croak(aTHX_ "THIS is NULL, avoiding crash.");
|
Perl_croak(aTHX_ "THIS is NULL, avoiding crash.");
|
||||||
|
|
||||||
THIS->AddDefensiveProc(spell_id,chance);
|
THIS->AddRangedProc(spell_id,chance);
|
||||||
}
|
}
|
||||||
XSRETURN_EMPTY;
|
XSRETURN_EMPTY;
|
||||||
}
|
}
|
||||||
@ -2368,7 +2368,7 @@ XS(XS_NPC_AddDefensiveProc) {
|
|||||||
if(THIS == NULL)
|
if(THIS == NULL)
|
||||||
Perl_croak(aTHX_ "THIS is NULL, avoiding crash.");
|
Perl_croak(aTHX_ "THIS is NULL, avoiding crash.");
|
||||||
|
|
||||||
THIS->AddProcToWeapon(spell_id, true, chance);
|
THIS->AddDefensiveProc(spell_id,chance);
|
||||||
}
|
}
|
||||||
XSRETURN_EMPTY;
|
XSRETURN_EMPTY;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1186,7 +1186,6 @@ float Mob::GetRangeDistTargetSizeMod(Mob* other)
|
|||||||
|
|
||||||
void NPC::RangedAttack(Mob* other)
|
void NPC::RangedAttack(Mob* other)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!other)
|
if (!other)
|
||||||
return;
|
return;
|
||||||
//make sure the attack and ranged timers are up
|
//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)
|
if (TotalDmg > 0)
|
||||||
CommonOutgoingHitSuccess(other, TotalDmg, skillInUse);
|
CommonOutgoingHitSuccess(other, TotalDmg, skillInUse);
|
||||||
else
|
else if (TotalDmg < -4)
|
||||||
TotalDmg = -5;
|
TotalDmg = -5;
|
||||||
|
|
||||||
if (TotalDmg > 0)
|
if (TotalDmg > 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user