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
|
|
@ -1,33 +0,0 @@
|
|||
namespace Server.Mobiles;
|
||||
|
||||
public class SummonLesserUndead : SummonUndead
|
||||
{
|
||||
private int _group;
|
||||
|
||||
public override void Trigger(MonsterAbilityTrigger trigger, BaseCreature source, Mobile target)
|
||||
{
|
||||
_group = Utility.Random(2);
|
||||
base.Trigger(trigger, source, target);
|
||||
}
|
||||
|
||||
public override BaseCreature CreateSummon(BaseCreature source)
|
||||
{
|
||||
return _group switch
|
||||
{
|
||||
0 => Utility.Random(4) switch
|
||||
{
|
||||
0 => new Skeleton(),
|
||||
1 => new SkeletalMage(),
|
||||
2 => new Mummy(),
|
||||
3 => new Zombie(),
|
||||
},
|
||||
_ => Utility.Random(4) switch
|
||||
{
|
||||
0 => new Ghoul(),
|
||||
1 => new Spectre(),
|
||||
2 => new Shade(),
|
||||
3 => new Bogle()
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue