package katanaDash
{
function armor::onTrigger(%this,%player,%slot,%val)
{
if(%player.getMountedImage(0) $= katanaImage.getID() && %slot $= 4)
{
if(%val)
{
if(%velX < 8 && %velX > -8 && %velY < 8 && %velY > -8)
{
//....
}
else
parent::onTrigger(%this, %player, %slot, %val);
}
else
parent::onTrigger(%this, %player, %slot, %val);
}
else
parent::onTrigger(%this, %player, %slot, %val);
}
};
activatePackage(katanaDash);
Are you sure this won't cause triggers to happen twice or more if you're holding the Katana but not moving and attempt to fire?