Core/Objects: Allow more specific checks to include or exclude feign death units in CreatureWithOptionsInObjectRangeCheck::IsAlive check (#30361)
* this also extends SMART_TARGET_CLOSEST_CREATURE dead param Port From (https://github.com/TrinityCore/TrinityCore/commit/92efc2523b75e4ca01be7d0894ed8bc979cb3049)
This commit is contained in:
@@ -258,4 +258,14 @@ namespace Framework.Constants
|
||||
FromRedirect = 0x01,
|
||||
HasRedirected = 0x02
|
||||
}
|
||||
|
||||
public enum FindCreatureAliveState
|
||||
{
|
||||
Alive = 0, // includes feign death
|
||||
Dead = 1, // excludes feign death
|
||||
EffectivelyAlive = 2, // excludes feign death
|
||||
EffectivelyDead = 3, // includes feign death
|
||||
|
||||
Max
|
||||
}
|
||||
}
|
||||
|
||||
@@ -415,7 +415,7 @@ namespace Framework.Constants
|
||||
InvokerParty = 16, // Invoker'S Party Members
|
||||
PlayerRange = 17, // Min, Max
|
||||
PlayerDistance = 18, // Maxdist
|
||||
ClosestCreature = 19, // Creatureentry(0any), Maxdist, Dead?, StringId
|
||||
ClosestCreature = 19, // Creatureentry(0any), Maxdist, findCreatureAliveState, StringId
|
||||
ClosestGameobject = 20, // Entry(0any), Maxdist, StringId
|
||||
ClosestPlayer = 21, // Maxdist
|
||||
ActionInvokerVehicle = 22, // Unit'S Vehicle Who Caused This Event To Occur
|
||||
|
||||
Reference in New Issue
Block a user