Core/Objects: Implemented vignettes
Port From (https://github.com/TrinityCore/TrinityCore/commit/fccf6fb72b60b08dfbe6d5fb17fba55239944fca)
This commit is contained in:
@@ -1724,6 +1724,13 @@ namespace Game.Entities
|
||||
if (CreateVehicleKit(vehId, entry, true))
|
||||
UpdateDisplayPower();
|
||||
|
||||
if (!IsPet())
|
||||
{
|
||||
uint vignetteId = GetCreatureTemplate().VignetteID;
|
||||
if (vignetteId != 0)
|
||||
SetVignette(vignetteId);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2052,6 +2059,10 @@ namespace Game.Entities
|
||||
RemoveUnitFlag(UnitFlags.InCombat);
|
||||
|
||||
SetMeleeDamageSchool((SpellSchools)cInfo.DmgSchool);
|
||||
|
||||
uint vignetteId = cInfo.VignetteID;
|
||||
if (vignetteId != 0)
|
||||
SetVignette(vignetteId);
|
||||
}
|
||||
|
||||
InitializeMovementAI();
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Game.Entities
|
||||
public List<uint> GossipMenuIds = new();
|
||||
public Dictionary<Difficulty, CreatureDifficulty> difficultyStorage = new();
|
||||
public uint RequiredExpansion;
|
||||
public uint VignetteID; // @todo Read Vignette.db2
|
||||
public uint VignetteID;
|
||||
public uint Faction;
|
||||
public ulong Npcflag;
|
||||
public float SpeedWalk;
|
||||
|
||||
Reference in New Issue
Block a user