ModernUO/Projects/UOContent/Mobiles/Animals/Mounts/HellSteed.cs
mark1145 053dbcbad0
fix: Fixes ignoring mobs, champions, party crash, slayer rarity, boat speedhack, etc (#1222)
* Movie ignore mobiles to Mobile class
* Allow necromancer familiars to ignore mobiles
* ChampionSpawn should not quietly fail when creating new spawn
* Fix client party crash bug: 2 people partied, the leader logs out, other client is hung
* Fix spellbooks creating with magery/meditation only and creating magery multiple times
* Fix BaseRunicTool.GetRandomSlayer() creating more undead slayers than intended
* Do not allow players to dismount each other whilst mounted
* Fix AOS onwards damage increase tooltip and wrong formula in AOS
* Fix monsters killing other monster revenants + animate dead should not attack player pets + other animates
* Fix fire steed having loot pack added twice
* Fix oaks spawn not able to create Unicorns + Kirins via Activator.CreateInstace() due to constructor having name as parametr
* Fix ignoreMobiles flag not propagated to client for non-players.
* Fix harrower tents not leeching from players
* Fix boats speedhacking around the map
* Fix bless, agility etc. not renewing duration
* Fix reveal always worked
* Fix empty constructor for steeds so they don't throw now.
2022-10-31 22:16:50 -07:00

62 lines
1.8 KiB
C#

namespace Server.Mobiles
{
public class HellSteed : BaseMount
{
public override string DefaultName => "a frenzied ostard";
[Constructible]
public HellSteed() : base(793, 0x3EBB, AIType.AI_Animal, FightMode.Aggressor)
{
SetStats(this);
}
public HellSteed(Serial serial) : base(serial)
{
}
public override string CorpseName => "a hellsteed corpse";
public override Poison PoisonImmune => Poison.Lethal;
private static MonsterAbility[] _abilities = { MonsterAbility.ChaosBreath };
public override MonsterAbility[] GetMonsterAbilities() => _abilities;
public static void SetStats(BaseCreature steed)
{
steed.SetStr(201, 210);
steed.SetDex(101, 110);
steed.SetInt(101, 115);
steed.SetHits(201, 220);
steed.SetDamage(20, 24);
steed.SetDamageType(ResistanceType.Physical, 25);
steed.SetDamageType(ResistanceType.Fire, 75);
steed.SetResistance(ResistanceType.Physical, 60, 70);
steed.SetResistance(ResistanceType.Fire, 90);
steed.SetResistance(ResistanceType.Poison, 100);
steed.SetSkill(SkillName.MagicResist, 90.1, 110.0);
steed.SetSkill(SkillName.Tactics, 50.0);
steed.SetSkill(SkillName.Wrestling, 90.1, 110.0);
steed.Fame = 0;
steed.Karma = 0;
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
}