灵兽礼包
parent
e5c6a1723a
commit
afda78f8e0
|
@ -4588,7 +4588,7 @@ public class HeroLogic{
|
||||||
public static void fiveStarPokemonPushByRandom(User user,int[][] getHeros) throws Exception{
|
public static void fiveStarPokemonPushByRandom(User user,int[][] getHeros) throws Exception{
|
||||||
int fiveStarNum = 0;
|
int fiveStarNum = 0;
|
||||||
for(int[] i : getHeros){
|
for(int[] i : getHeros){
|
||||||
SSpiritAnimal ssa = SSpiritAnimal.mapConfig.get(i);
|
SSpiritAnimal ssa = SSpiritAnimal.mapConfig.get(i[0]);
|
||||||
if(ssa != null && ssa.getQuality()==5){
|
if(ssa != null && ssa.getQuality()==5){
|
||||||
fiveStarNum = 1;
|
fiveStarNum = 1;
|
||||||
Poster.getPoster().dispatchEvent(new WelfareRedPackEvent(user.getId(), WelfareRedPacketType.random_pokemon.getType(),1));
|
Poster.getPoster().dispatchEvent(new WelfareRedPackEvent(user.getId(), WelfareRedPacketType.random_pokemon.getType(),1));
|
||||||
|
|
Loading…
Reference in New Issue