Updated to 8.2.0.31429 (scripts disabled atm, they still need updated)
Code Port from TrinityCore https://github.com/TrinityCore/TrinityCore Casc from WoW-Tools https://github.com/WoW-Tools/CASCExplorer
This commit is contained in:
@@ -1119,9 +1119,10 @@ namespace Game
|
||||
if (creatureTemplate != null)
|
||||
npcflag |= (ulong)creatureTemplate.Npcflag;
|
||||
|
||||
creature.SetUInt64Value(UnitFields.NpcFlags, npcflag);
|
||||
creature.SetNpcFlags((NPCFlags)(npcflag & 0xFFFFFFFF));
|
||||
creature.SetNpcFlags2((NPCFlags2)(npcflag >> 32));
|
||||
// reset gossip options, since the flag change might have added / removed some
|
||||
//cr->ResetGossipOptions();
|
||||
//cr.ResetGossipOptions();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user