Core/Creatures: Move immunities to separate table and implemented setting immunties to dispel, spell effects, aura types, aoe and chain targeting
Port From (https://github.com/TrinityCore/TrinityCore/commit/f70a5817e1c07891185d716611d45f50b1c73b78)
This commit is contained in:
@@ -1810,18 +1810,6 @@ namespace Game.Networking.Packets
|
||||
}
|
||||
}
|
||||
|
||||
public struct CreatureImmunities
|
||||
{
|
||||
public uint School;
|
||||
public uint Value;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteUInt32(School);
|
||||
data.WriteUInt32(Value);
|
||||
}
|
||||
}
|
||||
|
||||
public struct SpellHealPrediction
|
||||
{
|
||||
public ObjectGuid BeaconGUID;
|
||||
@@ -1915,6 +1903,18 @@ namespace Game.Networking.Packets
|
||||
public List<TargetLocation> TargetPoints = new();
|
||||
public CreatureImmunities Immunities;
|
||||
public SpellHealPrediction Predict;
|
||||
|
||||
public struct CreatureImmunities
|
||||
{
|
||||
public uint School;
|
||||
public uint Value;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
data.WriteUInt32(School);
|
||||
data.WriteUInt32(Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public struct LearnedSpellInfo
|
||||
|
||||
Reference in New Issue
Block a user