Skip to content

[FIX] mechanic_immune_mask crash last AzerothCore #9

Description

@KhyleTM650

Open DungeonMasterMgr.cpp (Change ct.mechanic_immune_mask for ct.CreatureImmunitiesId)
Search:

       "SELECT c.position_x, c.position_y, c.position_z, c.orientation, "
        "ct.mechanic_immune_mask, ct.`rank`, ct.name "
        "FROM creature c "
        "JOIN creature_template ct ON c.id1 = ct.entry "
        "WHERE c.map = %u "
        "AND ct.mechanic_immune_mask > 0 "
        "AND ct.`rank` >= 1 "
        "ORDER BY ct.mechanic_immune_mask DESC",
        mapId);

Change for:

        "SELECT c.position_x, c.position_y, c.position_z, c.orientation, "
        "ct.CreatureImmunitiesId, ct.`rank`, ct.name "
        "FROM creature c "
        "JOIN creature_template ct ON c.id1 = ct.entry "
        "WHERE c.map = %u "
        "AND ct.CreatureImmunitiesId > 0 "
        "AND ct.`rank` >= 1 "
        "ORDER BY ct.CreatureImmunitiesId DESC",
        mapId);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions