mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-27 16:56:48 -04:00
WIP: Final battle controller adjustments made.
This commit is contained in:
@@ -3441,6 +3441,8 @@ public class space_combat extends script.base_script
|
||||
space_utils.notifyObject(objDefender, "OnHullNearlyDestroyed", dctParams);
|
||||
}
|
||||
if(fltChassisHitPoints <= fltDamage && hasScript(objDefender, "systems.gcw.space.hero_ship")){
|
||||
if(hasObjVar(objDefender, "intInvincible")) return 0;
|
||||
setObjVar(objDefender, "intInvincible", 1);
|
||||
dictionary params = new dictionary();
|
||||
params.put("attacker", objAttacker);
|
||||
space_utils.notifyObject(objDefender, "OnAboutToBeDestroyed", params);
|
||||
|
||||
Reference in New Issue
Block a user