mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[11942] Add option to NearestCreatureEntryWithLiveState.. GridSearcher to be able to also search for both alive and corpse creatures
This commit is contained in:
parent
fcbde94267
commit
a42a55da84
5 changed files with 10 additions and 9 deletions
|
|
@ -5105,7 +5105,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||
// no target provided or it was not valid, so use closest in range
|
||||
if (!targetExplicit)
|
||||
{
|
||||
MaNGOS::NearestCreatureEntryWithLiveStateInObjectRangeCheck u_check(*m_caster, i_spellST->second.targetEntry, i_spellST->second.type != SPELL_TARGET_TYPE_DEAD, range);
|
||||
MaNGOS::NearestCreatureEntryWithLiveStateInObjectRangeCheck u_check(*m_caster, i_spellST->second.targetEntry, i_spellST->second.type != SPELL_TARGET_TYPE_DEAD, i_spellST->second.type == SPELL_TARGET_TYPE_DEAD, range);
|
||||
MaNGOS::CreatureLastSearcher<MaNGOS::NearestCreatureEntryWithLiveStateInObjectRangeCheck> searcher(p_Creature, u_check);
|
||||
|
||||
// Visit all, need to find also Pet* objects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue