Implemented NPC Special Ability 41 'Allow To Tank', gives NPC opportunity to take aggro over a client in melee range.

This commit is contained in:
KayenEQ 2014-11-15 23:40:13 -05:00
parent 94231b62a3
commit 01c580224d
4 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,8 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50)
-------------------------------------------------------
== 11/15/2014 ==
== 11/16/2014 ==
Kayen: Implemented NPC Special Ability 41 'Allow To Tank', gives NPC opportunity to take aggro over a client in melee range.
Kayen: Updated swarm pet AI to be consistent with live.
*OLD AI: Swarm pet would lock on to target until target died, then depop as soon as target died.

View File

@ -133,7 +133,8 @@ enum {
ALLOW_BENEFICIAL = 38,
DISABLE_MELEE = 39,
NPC_CHASE_DISTANCE = 40,
MAX_SPECIAL_ATTACK = 41
ALLOW_TO_TANK = 41,
MAX_SPECIAL_ATTACK = 42
};

View File

@ -403,6 +403,13 @@ Mob *HateList::GetTop(Mob *center)
}
}
if (!isTopClientType) {
if (top->GetSpecialAbility(ALLOW_TO_TANK)){
isTopClientType = true;
topClientTypeInRange = top;
}
}
if(!isTopClientType)
return topClientTypeInRange ? topClientTypeInRange : nullptr;

View File

@ -1571,7 +1571,7 @@ XS(XS_Mob_TypesTempPet)
{
dXSARGS;
if (items < 2 || items > 7)
Perl_croak(aTHX_ "Usage: Mob::TypesTempPet(THIS, typesid, name=nullptr, duration=0, follow=0, sticktarg=0, target=nullptr)");
Perl_croak(aTHX_ "Usage: Mob::TypesTempPet(THIS, typesid, name=nullptr, duration=0, follow=0, target=nullptr, sticktarg=0,)");
{
Mob * THIS;
uint32 typesid = (uint32)SvUV(ST(1));