| 05-12-2006, 09:26 PM | #1 |
Electricutes nearby enemies over time, draining mana from the caster over time. If the man target unit steps out of range, the channeling will stop. The bolt will seek other nearby targets until the max targets are fully taken, however it will deal less damage for each target it extracts to, and drain extra mana from the caster. Follows the JESP standard. Update: Fixed the GetHighestHPFromGroup to follow the JESP. Update #2: Fixed some minor variable leaks. (thanks to blu) |
| 05-12-2006, 09:31 PM | #2 |
Checking for JESP standard, pending approval. Edit: function GetHighestHPFromGroup needs to either be moved out of the trigger to your custom script section, or be prefixed with the name of the spell and '_' to comply with the JESP standard. Then it can be approved (looks fine otherwise). |
| 05-12-2006, 10:18 PM | #3 |
Done |
| 05-12-2006, 10:21 PM | #4 |
Approved A couple of minor leaks found on detailed inspection: function LightningGrapple_GetHighestHPFromGroup - unit variable lastresort should be nulled before returning highesthpunit function LightningGrapple_Damage - group variable temp not set to null |
| 05-13-2006, 10:38 AM | #5 |
Thanks, well done on noticing those. Fixed. |
| 06-07-2006, 07:59 PM | #6 |
I followed instructions> - Created the variables - Copied the ability - Copied the trigger - Copied the custom script - Set rawcode = ability |
| 06-09-2006, 02:17 PM | #7 |
dont set the t=null |
