Core/Auras: Implemented SPELL_AURA_ADD_PCT_MODIFIER_BY_SPELL_LABEL and SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/ba4fa060d765a35507f1a73287504c3f2e440fdb)
This commit is contained in:
@@ -8129,20 +8129,42 @@ namespace Game.Spells
|
||||
{
|
||||
op = SpellModOp.HealingAndDamage;
|
||||
type = SpellModType.Flat;
|
||||
value = 0;
|
||||
mask = new FlagArray128();
|
||||
spellId = 0;
|
||||
ownerAura = _ownerAura;
|
||||
}
|
||||
|
||||
public SpellModOp op { get; set; }
|
||||
public SpellModType type { get; set; }
|
||||
public int value { get; set; }
|
||||
public FlagArray128 mask { get; set; }
|
||||
public uint spellId { get; set; }
|
||||
public Aura ownerAura { get; set; }
|
||||
}
|
||||
|
||||
public class SpellModifierByClassMask : SpellModifier
|
||||
{
|
||||
public SpellModifierByClassMask(Aura _ownerAura) : base(_ownerAura)
|
||||
{
|
||||
value = 0;
|
||||
mask = new FlagArray128();
|
||||
}
|
||||
|
||||
public int value;
|
||||
public FlagArray128 mask;
|
||||
}
|
||||
|
||||
public class SpellFlatModifierByLabel : SpellModifier
|
||||
{
|
||||
public SpellFlatModByLabel value = new();
|
||||
|
||||
public SpellFlatModifierByLabel(Aura _ownerAura) : base(_ownerAura) { }
|
||||
}
|
||||
|
||||
class SpellPctModifierByLabel : SpellModifier
|
||||
{
|
||||
public SpellPctModByLabel value = new();
|
||||
|
||||
public SpellPctModifierByLabel(Aura _ownerAura) : base(_ownerAura) { }
|
||||
}
|
||||
|
||||
public class WorldObjectSpellTargetCheck : ICheck<WorldObject>
|
||||
{
|
||||
internal WorldObject _caster;
|
||||
|
||||
Reference in New Issue
Block a user