Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddAura to itself immediately after PerformIngameSpawn fails #441

Closed
NadeonCH opened this issue Aug 1, 2023 · 1 comment
Closed

AddAura to itself immediately after PerformIngameSpawn fails #441

NadeonCH opened this issue Aug 1, 2023 · 1 comment

Comments

@NadeonCH
Copy link

NadeonCH commented Aug 1, 2023

Adding an aura to a creature after PerformIngameSpawn will not be applied.

It does however apply when I wait a couple of milliseconds (around 200ms).

No errors or anything, just .. Not being applied.

local creature = PerformIngameSpawn(1,      -- 1 for creature
        entry,                              -- Boss entry ID
        bossCoord.Map,                      -- Map ID
        0,                                  -- Instance ID
        bossCoord.X,                        -- X Pos
        bossCoord.Y,                        -- Y Pos
        bossCoord.Z,                        -- Z Pos
        bossCoord.Orientation               -- Orientation
)

creature:SetHealth(creature:GetMaxHealth()) -- Works
creature:AddAura(500000, creature)          -- Does not work (will never be applied)

Pretty much nothing works immediately after, things such as

creature:AttackStart(player)
creature:SetInCombatWith(player)

Does not work either. Meaning it never starts attacking the player, not is it in combat with the player.

@Foereaper
Copy link
Member

This is default core behavior and call order. Not really much we can do about this unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants