mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Fix for Shocklance Spawn Invinciblity
This commit is contained in:
parent
b2c2dad8e0
commit
92a8c0808d
|
|
@ -200,6 +200,20 @@ 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue