Quantcast

Enhance some methods for checking weapons to allow for Titan's Grip.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-05-22 12:37:57
Author local date 2014-05-22 12:37:57 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-05-22 12:37:57
Committer local date 2014-05-22 12:37:57 +0000
Commit 74af397654329a79204fa126f91c8caf3cee857c
Tree b62f27203f156a0eaf11451fc151d47966f736b1
Parent d420a1ba3ff14c7602762ce4e17b9669f9fb1863
Enhance some methods for checking weapons to allow for Titan's Grip.

Titan's Grip allows for a 2H weapon to be equipped in the off-hand.  Add
extra parameters to HasOneHandedWeapon() and HasTwoHandedWeapon() to allow
checking in a specific weapon slot, and to HasMainHandWeapon() and
HasOffHandWeapon() to allow checking explicitly for either a 1H or 2H
weapon.

Give HasWeapon() condition an extra paramter "type=value" where value is
"1h" or "2h" to allow checking explicitly for a 1H or 2H weapon in the
given hand.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1490 d5049fe3-3747-40f7-a4b5-f36d6801af5f