Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
fix minions
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakers committed Oct 12, 2020
1 parent 136d934 commit e95ae6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions league_skin_changer/skin_changer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ void skin_changer::update( ) {
if ( minion->is_lane_minion( ) ) {
// Change skin for lane minions
//
change_skin_for_object( minion, config::current_minion_skin_index * 2 );

if ( player && player->get_team( ) == 200 )
change_skin_for_object( minion, config::current_minion_skin_index * 2 + 1 );
else
change_skin_for_object( minion, config::current_minion_skin_index * 2 );
} else {
// Change skin for other minions like baron, blue etc.
//
Expand Down Expand Up @@ -186,6 +190,6 @@ void skin_changer::init( ) {
FreeConsole( );
#endif
FreeLibraryAndExitThread( my_module, 0 );
}
}

HMODULE skin_changer::my_module;

0 comments on commit e95ae6a

Please # to comment.