@@ -2598,27 +2598,6 @@ namespace LuaUnit
25982598 return 0 ;
25992599 }
26002600
2601- /* *
2602- * Returns the [Spell] currently being cast by the [Unit] for the given spell type.
2603- *
2604- * The spell type can be one of the following:
2605- * - CURRENT_MELEE_SPELL (0)
2606- * - CURRENT_GENERIC_SPELL (1)
2607- * - CURRENT_CHANNELED_SPELL (2)
2608- * - CURRENT_AUTOREPEAT_SPELL (3)
2609- *
2610- * @param uint8 currentSpellType = CURRENT_GENERIC_SPELL : the [CurrentSpellTypes] to retrieve
2611- * @return [Spell] spell : the current spell or nil
2612- */
2613- int GetCurrentSpell (Eluna* E, Unit* unit)
2614- {
2615- uint8 index = E->CHECKVAL <uint8>(2 , CURRENT_GENERIC_SPELL);
2616- if (index >= CURRENT_MAX_SPELL)
2617- return luaL_argerror (E->L , 2 , " valid CurrentSpellTypes expected" );
2618- E->Push (unit->GetCurrentSpell ((CurrentSpellTypes)index));
2619- return 1 ;
2620- }
2621-
26222601 ElunaRegister<Unit> UnitMethods[] =
26232602 {
26242603 // Getters
@@ -2665,7 +2644,6 @@ namespace LuaUnit
26652644 { " GetVehicleKit" , &LuaUnit::GetVehicleKit },
26662645 { " GetVehicle" , &LuaUnit::GetVehicle },
26672646 { " GetMovementType" , &LuaUnit::GetMovementType },
2668- { " GetCurrentSpell" , &LuaUnit::GetCurrentSpell },
26692647
26702648 // Setters
26712649 { " SetFaction" , &LuaUnit::SetFaction },
0 commit comments