spellsIsImmuneToPetrification(object)

Returns TRUE if the target creature is immune to petrification

int spellsIsImmuneToPetrification(
    object oCreature
);

Parameters

oCreature

The creature you want to test for immunity.


Description

Returns TRUE if the target creature is immune to petrification.



Remarks

Immunity can be granted in two ways. It can be granted through an item property or it can be based on oCreature's appearance type. The following appearance types are (immune):
APPEARANCE_TYPE_ALLIP APPEARANCE_TYPE_ANIMATED_CHEST APPEARANCE_TYPE_BASILISK APPEARANCE_TYPE_BAT_HORROR
APPEARANCE_TYPE_COCKATRICE APPEARANCE_TYPE_DEMI_LICH APPEARANCE_TYPE_DRACOLICH APPEARANCE_TYPE_DRAGON_SHADOW
APPEARANCE_TYPE_DWARF_GOLEM APPEARANCE_TYPE_DWARF_HALFORC APPEARANCE_TYPE_ELEMENTAL_AIR APPEARANCE_TYPE_ELEMENTAL_AIR_ELDER
APPEARANCE_TYPE_ELEMENTAL_EARTH APPEARANCE_TYPE_ELEMENTAL_EARTH_ELDER APPEARANCE_TYPE_ELEMENTAL_FIRE APPEARANCE_TYPE_ELEMENTAL_FIRE_ELDER
APPEARANCE_TYPE_ELEMENTAL_WATER APPEARANCE_TYPE_ELEMENTAL_WATER_ELDER APPEARANCE_TYPE_GOLEM_ADAMANTIUM APPEARANCE_TYPE_GOLEM_BONE
APPEARANCE_TYPE_GOLEM_CLAY APPEARANCE_TYPE_GOLEM_IRON APPEARANCE_TYPE_GOLEM_MITHRAL APPEARANCE_TYPE_GOLEM_STONE
APPEARANCE_TYPE_GORGON APPEARANCE_TYPE_HEURODIS_LICH APPEARANCE_TYPE_LANTERN_ARCHON APPEARANCE_TYPE_MEDUSA
APPEARANCE_TYPE_MINDFLAYER_ALHOON APPEARANCE_TYPE_SHADOW APPEARANCE_TYPE_SHADOW_FIEND APPEARANCE_TYPE_SHIELD_GUARDIAN
APPEARANCE_TYPE_SKELETAL_DEVOURER APPEARANCE_TYPE_SKELETON_CHIEFTAIN APPEARANCE_TYPE_SKELETON_COMMON APPEARANCE_TYPE_SKELETON_MAGE
APPEARANCE_TYPE_SKELETON_PRIEST APPEARANCE_TYPE_SKELETON_WARRIOR APPEARANCE_TYPE_SKELETON_WARRIOR_1 APPEARANCE_TYPE_SPECTRE
APPEARANCE_TYPE_WILL_O_WISP APPEARANCE_TYPE_WRAITH


Requirements

#include "x0_i0_spells"


Version

???

See Also

functions:  GetAppearanceType
constants:  APPEARANCE_TYPE_*
categories:  Spells Functions


author: Mistress, contributor: Kookoo