Method SpellInfo:IsAffected [-] [+]

Returns true if the SpellInfo is affected by the given spell family and flags, false otherwise. The flags are a 96-bit value split into three uint32 components.

Synopsis

isAffected = SpellInfo:IsAffected( familyName, flag0, flag1, flag2 )

Arguments

number familyName

The spell family name to check.

Valid numbers: integers from 0 to 4,294,967,295.

number flag0

The first 32 bits of the spell family flags.

Valid numbers: integers from 0 to 4,294,967,295.

number flag1

The second 32 bits of the spell family flags.

Valid numbers: integers from 0 to 4,294,967,295.

number flag2

The third 32 bits of the spell family flags.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

boolean isAffected
See method description.

Generated on
© 2010 - 2024 Eluna Lua Engine