mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 16:14:35 +00:00
Fix for Shocklance Spawn Invinciblity
This commit is contained in:
parent
b2c2dad8e0
commit
92a8c0808d
1 changed files with 14 additions and 0 deletions
|
|
@ -200,6 +200,20 @@ function GameBaseData::onAdd(%data, %obj)
|
||||||
%obj.target = -1;
|
%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
|
// Prevent package from being activated if it is already
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue