mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[Cleanup] Wake The Dead argument was named the same as a member variable in Mob (#3214)
# Notes - Member variable is also named `target`.
This commit is contained in:
parent
3e5d0a0601
commit
b1571cd062
10
zone/aa.cpp
10
zone/aa.cpp
@ -285,7 +285,7 @@ void Mob::TypesTemporaryPets(uint32 typesid, Mob *targ, const char *name_overrid
|
|||||||
delete made_npc;
|
delete made_npc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *target, uint32 duration) {
|
void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *tar, uint32 duration) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
SPA 299 Wake The Dead, 'animateDead' should be temp pet, always spawns 1 pet from corpse, max value is duration
|
SPA 299 Wake The Dead, 'animateDead' should be temp pet, always spawns 1 pet from corpse, max value is duration
|
||||||
@ -489,8 +489,8 @@ void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *target, uint3
|
|||||||
swarm_pet_npc->GetSwarmInfo()->owner_id = GetID();
|
swarm_pet_npc->GetSwarmInfo()->owner_id = GetID();
|
||||||
|
|
||||||
//give the pets somebody to "love"
|
//give the pets somebody to "love"
|
||||||
if (target != nullptr) {
|
if (tar != nullptr) {
|
||||||
swarm_pet_npc->AddToHateList(target, 10000, 1000);
|
swarm_pet_npc->AddToHateList(tar, 10000, 1000);
|
||||||
swarm_pet_npc->GetSwarmInfo()->target = 0;
|
swarm_pet_npc->GetSwarmInfo()->target = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -503,8 +503,8 @@ void Mob::WakeTheDead(uint16 spell_id, Corpse *corpse_to_use, Mob *target, uint3
|
|||||||
}
|
}
|
||||||
|
|
||||||
//the target of these swarm pets will take offense to being cast on...
|
//the target of these swarm pets will take offense to being cast on...
|
||||||
if (target != nullptr)
|
if (tar != nullptr)
|
||||||
target->AddToHateList(this, 1, 0);
|
tar->AddToHateList(this, 1, 0);
|
||||||
|
|
||||||
// The other pointers we make are handled elsewhere.
|
// The other pointers we make are handled elsewhere.
|
||||||
delete made_npc;
|
delete made_npc;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user