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_idRequired map ID.
Valid numbers: integers from 0 to 4,294,967,295.
number zone_idRequired zone ID.
Valid numbers: integers from 0 to 4,294,967,295.
number area_idRequired area ID.
Valid numbers: integers from 0 to 4,294,967,295.
boolean strict (false)Whether all conditions must strictly match.
Returns
boolean isAllowed- See method description.