WoR_PRC8/_module/nss/sha_on_pceqpitem.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

27 lines
828 B
Plaintext

//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//:::::::::::::::::::::::: Shayan's Subrace Engine::::::::::::::::::::::::::::::
//:::::::::::::::::File Name: sha_on_pceqpitem :::::::::::::::::::::::::::::::::
//::::::::::::::::::::: OnPlayerEquipItem script :::::::::::::::::::::::::::::::
//:: Written By: Shayan.
//:: Contact: mail_shayan@yahoo.com
//
// Description: This script is used to check whether the PC belonging to a
// particular subrace can use the item (weapon) they are trying to
// equip.
#include "sha_subr_methds"
// 3.0.6.3 - Added fix by MetaPhaze
#include "x2_inc_intweapon"
void main()
{
// 3.0.6.3 - Added fix by MetaPhaze
if(!GetHasEffect(EFFECT_TYPE_POLYMORPH, GetPCItemLastEquippedBy())) return;
SubraceOnPlayerEquipItem();
}