mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-06 22:12:58 -04:00
Added null pointer check when weapon stats cannot be retrieved for a delayed attack.
This commit is contained in:
@@ -481,7 +481,8 @@ public class combat_base extends script.base_script
|
||||
return;
|
||||
}
|
||||
dictionary dctWeaponStats = utils.getDictionaryScriptVar(objWeapon, "dctWeaponStats");
|
||||
utils.setScriptVar(egg, "dctWeaponStats", dctWeaponStats);
|
||||
if(dctWeaponStatus)
|
||||
utils.setScriptVar(egg, "dctWeaponStats", dctWeaponStats);
|
||||
utils.setScriptVar(egg, "isAutoAimed", isAutoAimed);
|
||||
doStandardDelayedAction(egg, target, attackName, actionData, instantHit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user