mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[10724] Fix TARGET_AREAEFFECT_CUSTOM, need to obey type when DB target entry exist
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
ec974656ac
commit
8a1c5bd800
2 changed files with 10 additions and 2 deletions
|
|
@ -1823,7 +1823,15 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
|
||||
if ((*iter)->GetEntry() == i_spellST->second.targetEntry)
|
||||
{
|
||||
targetUnitMap.push_back((*iter));
|
||||
if (i_spellST->second.type == SPELL_TARGET_TYPE_DEAD && ((Creature*)(*iter))->IsCorpse())
|
||||
{
|
||||
targetUnitMap.push_back((*iter));
|
||||
}
|
||||
else if (i_spellST->second.type == SPELL_TARGET_TYPE_CREATURE && (*iter)->isAlive())
|
||||
{
|
||||
targetUnitMap.push_back((*iter));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10723"
|
||||
#define REVISION_NR "10724"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue