Module commit
Module commit.
This commit is contained in:
12
_module/nss/werewolf_silver.nss
Normal file
12
_module/nss/werewolf_silver.nss
Normal file
@@ -0,0 +1,12 @@
|
||||
void main()
|
||||
{
|
||||
object oWeapon = GetLastWeaponUsed(OBJECT_SELF);
|
||||
string sWeaponTag = GetTag(oWeapon);
|
||||
if((FindSubString(sWeaponTag,"Silver")!= -1)||(FindSubString(sWeaponTag,"SIL"))!= -1)
|
||||
{
|
||||
object oWerewolf = GetAttackTarget(OBJECT_SELF);
|
||||
|
||||
AddItemProperty(DURATION_TYPE_TEMPORARY,ItemPropertyEnhancementBonusVsRace(IP_CONST_RACIALTYPE_SHAPECHANGER,1),oWeapon,7.0);
|
||||
AddItemProperty(DURATION_TYPE_TEMPORARY,ItemPropertyVisualEffect(ITEM_VISUAL_SONIC),oWeapon,7.0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user