Skip to content

Commit 594c35e

Browse files
committed
Fix CanTitanGrip method
1 parent 91038de commit 594c35e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

methods/TrinityCore/PlayerMethods.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
namespace LuaPlayer
2020
{
2121
/**
22-
* Returns 'true' if the [Player] can Titan Grip, 'false' otherwise.
23-
*
22+
* Returns 'true' if the [Player] can Titan Grip the specific [Item], 'false' otherwise.
23+
* @param [Item] item : an instance of an item
2424
* @return bool canTitanGrip
2525
*/
2626
int CanTitanGrip(Eluna* E, Player* player)
2727
{
28-
E->Push(player->CanTitanGrip());
28+
Item* item = E->CHECKOBJ<Item>(2);
29+
30+
E->Push(player->CanTitanGrip(item));
2931
return 1;
3032
}
3133

0 commit comments

Comments
 (0)