This commit is contained in:
ChocoTaco1 2020-11-17 07:29:53 -05:00
parent 2ce1a1c8ff
commit e73ec0069d
2 changed files with 7 additions and 14 deletions

View file

@ -200,20 +200,6 @@ function GameBaseData::onAdd(%data, %obj)
%obj.target = -1;
}
//Fix for shocklance spawn invinciblity on spawn
function ShockLanceImage::onFire(%this, %obj, %slot)
{
%p = parent::onFire(%this, %obj, %slot);
if(%obj.client > 0)
{
%obj.setInvincibleMode(0, 0.00);
%obj.setInvincible( false );
}
return %p;
}
};
// Prevent package from being activated if it is already

View file

@ -393,6 +393,13 @@ function TargetingLaserImage::onFire(%data,%obj,%slot)
function ShockLanceImage::onFire(%this, %obj, %slot)
{
//Added Spawn Invinciblity check
if(%obj.client > 0)
{
%obj.setInvincibleMode(0, 0.00);
%obj.setInvincible( false );
}
// z0dd - ZOD, 4/10/04. ilys - Added rapidfire shocklance fix
if(%obj.cantfire !$= "")
return;