30 lines
789 B
Plaintext
30 lines
789 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetLastHostileActor();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetTag(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)) != "GorganasBlade")
|
|
return;
|
|
|
|
effect eEffect;
|
|
eEffect = EffectDamage(60, DAMAGE_TYPE_ELECTRICAL, DAMAGE_POWER_NORMAL);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, GetObjectByTag("Gorgana"));
|
|
|
|
object oTarget;
|
|
oTarget = GetObjectByTag("Gorgana");
|
|
|
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
|
//apply to the WP's location instead
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_IMP_LIGHTNING_S), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_IMP_LIGHTNING_S), GetLocation(oTarget));
|
|
|
|
}
|
|
|