Method SpellInfo:CheckLocation [-] [+]

Returns true if the SpellInfo can be cast in the specified location.

Synopsis

isAllowed = SpellInfo:CheckLocation( map_id, zone_id, area_id, player )

isAllowed = SpellInfo:CheckLocation( map_id, zone_id, area_id, player, strict )

Arguments

number map_id

Required map ID.

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

number zone_id

Required zone ID.

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

number area_id

Required area ID.

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

Player player

The Player casting the spell.

boolean strict (false)

Whether all conditions must strictly match.

Returns

boolean isAllowed
See method description.

Generated on
©2016 - Eluna Lua Engine