feat: Adds ability groups, DOT abilities, and combat abilities (#1264)
- [X] Adds `MonsterAbilitySingleTarget` - [X] Adds `MonsterAbilitySingleTargetDoT` - [X] Adds monster ability groups with weighted abilities - [X] Adds rune corruption ability - [X] Adds poison gas counter ability - [X] Adds stun attack ability - [X] Adds throw hatchet counter ability - [X] Adds fanning fire ability - [X] Fixes destroy equipment to skip spell channel items
This commit is contained in:
parent
df9a58dd49
commit
520f15e46c
62 changed files with 644 additions and 546 deletions
|
|
@ -199,10 +199,10 @@ namespace Server
|
|||
if (from is { Deleted: false, Alive: true })
|
||||
{
|
||||
var reflectPhys = AosAttributes.GetValue(m, AosAttribute.ReflectPhysical);
|
||||
var reflectPhysAbility = bcFrom?.GetAbility(MonsterAbilityType.ReflectPhysicalDamage) as ReflectPhysicalDamage;
|
||||
var reflectPhysAbility = bcFrom
|
||||
?.GetAbility(MonsterAbilityType.ReflectPhysicalDamage) as ReflectPhysicalDamage;
|
||||
|
||||
if (reflectPhysAbility
|
||||
?.CanTrigger(bcFrom, MonsterAbilityTrigger.CombatAction) == true)
|
||||
if (reflectPhysAbility?.CanTrigger(bcFrom, MonsterAbilityTrigger.CombatAction) == true)
|
||||
{
|
||||
reflectPhys += reflectPhysAbility.PercentReflected;
|
||||
m.SendLocalizedMessage(1070844); // The creature repels the attack back at you.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue