mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-30 08:23:51 +00:00
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:
parent
94231b62a3
commit
01c580224d
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user