Skip to content

Commit

Permalink
Fixes to part 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Jul 30, 2023
1 parent c78ba01 commit a67b027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMangos/PlayerMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -3160,7 +3160,7 @@ namespace LuaPlayer
bool update = Eluna::CHECKVAL<bool>(L, 3, true);
(void)update; // ensure that the variable is referenced in order to pass compiler checks

player->RemoveCategoryCooldown(category);
player->RemoveSpellCategoryCooldown(category, update);
return 0;
}

Expand Down
3 changes: 1 addition & 2 deletions CMangos/UnitMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ namespace LuaUnit
*/
int GetVictim(lua_State* L, Unit* unit)
{
Eluna::Push(L, unit->getVictim());
Eluna::Push(L, unit->GetVictim());
return 1;
}

Expand Down Expand Up @@ -2168,7 +2168,6 @@ namespace LuaUnit
}
}
Eluna::Push(L, target->AddSpellAuraHolder(holder));
#endif
return 1;
}

Expand Down

0 comments on commit a67b027

Please sign in to comment.