Its meant to only do effect on base creatures and not players but its not doing anything at all :(

public void OnHit(Mobile attacker, Mobile defender, int damage)
{
if (defender is BaseCreature)
{
if ( Utility.RandomDouble() < 0.05 )
attacker.SendLocalizedMessage(1060078);
Effects.SendLocationParticles(EffectItem.Create(attacker.Location, attacker.Map, EffectItem.DefaultDuration), 0xAAFD, 8, 12, 9943);
attacker.PlaySound(0x482);
defender.FixedEffect(0x37BE, 20, 25);


}
 
Back