29 lines
647 B
Plaintext
29 lines
647 B
Plaintext
|
//checks to see if hench has prerequisites for dwarven defender prestige class
|
||
|
//written by kookoo 8-13-8
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
object oHench = OBJECT_SELF;
|
||
|
//must be lawful
|
||
|
int nRace = GetRacialType(oHench);
|
||
|
if (nRace == RACIAL_TYPE_DWARF)
|
||
|
{
|
||
|
if (GetAlignmentLawChaos(oHench) == ALIGNMENT_LAWFUL)
|
||
|
{
|
||
|
//must have BAB of 7 or better
|
||
|
if (GetBaseAttackBonus(oHench) >= 7)
|
||
|
{
|
||
|
//must have dodge feat
|
||
|
if (GetHasFeat(FEAT_DODGE, oHench))
|
||
|
{
|
||
|
//must have toughness feat
|
||
|
if (GetHasFeat(FEAT_TOUGHNESS, oHench))
|
||
|
{
|
||
|
return TRUE;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return FALSE;
|
||
|
}
|