how the fuck did this happen?

This commit is contained in:
Mari the Deer 2020-06-03 02:28:23 +02:00
commit 6bf511e7e5
2 changed files with 3 additions and 3 deletions

View file

@ -1047,7 +1047,7 @@ Class BiosparkBeam : Actor
}
for ( int i=0; i<t.hitlist.Size(); i++ )
{
if ( t.hitlist[i].hitactor is 'BiosparkHitbox' )
if ( (t.hitlist[i].hitactor is 'BiosparkHitbox') && t.hitlist[i].hitactor.target )
{
let s = Spawn("BiosparkComboImpact",t.hitlist[i].hitactor.pos);
s.target = target;
@ -1190,7 +1190,7 @@ Class BiosparkBeam : Actor
t.Trace(pos,CurSector,x,speed,0);
for ( int i=0; i<t.hitlist.Size(); i++ )
{
if ( t.hitlist[i].hitactor is 'BiosparkHitbox' )
if ( (t.hitlist[i].hitactor is 'BiosparkHitbox') && t.hitlist[i].hitactor.target )
t.hitlist[i].hitactor.target.Destroy();
else
{