24 lines
610 B
Plaintext
24 lines
610 B
Plaintext
|
#include "NW_I0_GENERIC"
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetAttackTarget(OBJECT_SELF);
|
||
|
object oWolfWeapon = GetLastWeaponUsed(OBJECT_SELF);
|
||
|
object oWolfBite = GetObjectByTag("WWBite");
|
||
|
if(oWolfWeapon == oWolfBite)
|
||
|
{
|
||
|
ExecuteScript("werewolfbite",oPC);
|
||
|
}
|
||
|
if(GetBehaviorState(NW_FLAG_BEHAVIOR_SPECIAL))
|
||
|
{
|
||
|
DetermineSpecialBehavior();
|
||
|
}
|
||
|
else if(!GetSpawnInCondition(NW_FLAG_SET_WARNINGS))
|
||
|
{
|
||
|
DetermineCombatRound();
|
||
|
}
|
||
|
if(GetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT))
|
||
|
{
|
||
|
SignalEvent(OBJECT_SELF, EventUserDefined(1003));
|
||
|
}
|
||
|
}
|