mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
[Cleanup] Remove Evade() from zone/entity.cpp and zone/entity.h (#3394)
# Notes - This is unused.
This commit is contained in:
parent
577f61b082
commit
108fc82ee0
@ -3592,24 +3592,6 @@ void EntityList::HalveAggro(Mob *who)
|
||||
}
|
||||
}
|
||||
|
||||
void EntityList::Evade(Mob *who)
|
||||
{
|
||||
uint32 flatval = who->GetLevel() * 13;
|
||||
int amt = 0;
|
||||
auto it = npc_list.begin();
|
||||
while (it != npc_list.end()) {
|
||||
if (it->second->CastToNPC()->CheckAggro(who)) {
|
||||
amt = it->second->CastToNPC()->GetHateAmount(who);
|
||||
amt -= flatval;
|
||||
if (amt > 0)
|
||||
it->second->CastToNPC()->SetHateAmountOnEnt(who, amt);
|
||||
else
|
||||
it->second->CastToNPC()->SetHateAmountOnEnt(who, 0);
|
||||
}
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
//removes "targ" from all hate lists, including feigned, in the zone
|
||||
void EntityList::ClearAggro(Mob* targ)
|
||||
{
|
||||
|
||||
@ -470,7 +470,6 @@ public:
|
||||
void CorpseFix(Client* c);
|
||||
void HalveAggro(Mob* who);
|
||||
void DoubleAggro(Mob* who);
|
||||
void Evade(Mob *who);
|
||||
void UpdateHoTT(Mob* target);
|
||||
|
||||
void Process();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user