Fixes chaos damage bug with the spell system. Fixes various small other bugs. Fixes more merge cast type checks and uses default values.
This commit is contained in:
parent
9542c79ea4
commit
c155c82325
115 changed files with 644 additions and 1041 deletions
|
|
@ -58,11 +58,7 @@ namespace Server.Spells.Spellweaving
|
|||
damage /= 100;
|
||||
}
|
||||
|
||||
int[] types = new int[4];
|
||||
types[Utility.Random(types.Length)] = 100;
|
||||
|
||||
SpellHelper.Damage(this, m, damage, 0, types[0], types[1], types[2],
|
||||
types[3]); //Chaos damage. Random elemental damage
|
||||
SpellHelper.Damage(this, m, damage, 0, 0, 0, 0, 0, 100);
|
||||
}
|
||||
|
||||
FinishSequence();
|
||||
|
|
@ -79,7 +75,8 @@ namespace Server.Spells.Spellweaving
|
|||
|
||||
protected override void OnTarget(Mobile m, object o)
|
||||
{
|
||||
if (o is Mobile) m_Owner.Target((Mobile)o);
|
||||
if (o is Mobile mobile)
|
||||
m_Owner.Target(mobile);
|
||||
}
|
||||
|
||||
protected override void OnTargetFinish(Mobile m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue