Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function TrinketMenu.IsPlayerReallyDead()
- local dead = UnitIsDeadOrGhost(RGGM_CONSTANTS.UNIT_ID_PLAYER)
- if dead then
- local FEIGN_DEATH = "Feign Death"
- for i = 1, 24 do
- --local name, buff, count, buffType, duration, expirationTime, isMine, isStealable, _, spellId = UnitBuff(RGGM_CONSTANTS.UNIT_ID_PLAYER, i);
- local name, _, _, _, _, _, _, _, _, _ = UnitBuff(RGGM_CONSTANTS.UNIT_ID_PLAYER, i);
- if name == FEIGN_DEATH then
- return nil;
- end
- end
- end
- return dead
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement