|  |  | @ -239,6 +239,7 @@ public class ActionsBase { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     //Add blocked types here
 |  |  |  |     //Add blocked types here
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public boolean blocked(AbstractWorldObject awo, PowersBase pb, int trains, AbstractCharacter source) { |  |  |  |     public boolean blocked(AbstractWorldObject awo, PowersBase pb, int trains, AbstractCharacter source) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(!pb.getName().contains("Summon")) { |  |  |  |         if(!pb.getName().contains("Summon")) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (AbstractWorldObject.IsAbstractCharacter(awo)) { |  |  |  |             if (AbstractWorldObject.IsAbstractCharacter(awo)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AbstractCharacter target = (AbstractCharacter) awo; |  |  |  |                 AbstractCharacter target = (AbstractCharacter) awo; | 
			
		
	
	
		
		
			
				
					|  |  | @ -252,17 +253,22 @@ public class ActionsBase { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(pb.isChant) |  |  |  |         if(pb.isChant) | 
			
		
	
		
		
			
				
					
					|  |  |  |             return false; |  |  |  |             return false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (AbstractWorldObject.IsAbstractCharacter(awo)) { |  |  |  |         if (AbstractWorldObject.IsAbstractCharacter(awo)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             AbstractCharacter ac = (AbstractCharacter) awo; |  |  |  |             AbstractCharacter ac = (AbstractCharacter) awo; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if(ac.effects.containsKey(this.stackType)) { |  |  |  |             if(ac.effects.containsKey(this.stackType)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 Boolean sameRank = false; |  |  |  |                 Boolean sameRank = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 Effect eff = ac.effects.get(this.stackType); |  |  |  |                 Effect eff = ac.effects.get(this.stackType); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 String currentEffect = eff.getEffectsBase().getIDString(); |  |  |  |                 String currentEffect = eff.getEffectsBase().getIDString(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 String newEffect = this.effectID; |  |  |  |                 String newEffect = this.effectID; | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (currentEffect.equals(newEffect) && !this.stackType.equals("Stun")) |  |  |  |                 if (currentEffect.equals(newEffect) && !this.stackType.equals("Stun")) | 
			
		
	
		
		
			
				
					
					|  |  |  |                     return false; |  |  |  |                     return false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if (eff != null) { |  |  |  |                 if (eff != null) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     for (ActionsBase action : eff.getPower().getActions()) { |  |  |  |                     for (ActionsBase action : eff.getPower().getActions()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                         if (this.stackType.equals(action.stackType) && this.stackOrder == action.stackOrder) { |  |  |  |                         if (this.stackType.equals(action.stackType) && this.stackOrder == action.stackOrder) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -270,9 +276,11 @@ public class ActionsBase { | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 return true; |  |  |  |                                 return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |                             } |  |  |  |                             } | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                         if (sameRank) { |  |  |  |                         if (sameRank) { | 
			
		
	
		
		
			
				
					
					|  |  |  |                             if (this.greaterThan && trains <= eff.getTrains()) |  |  |  |                             if (this.greaterThan && trains <= eff.getTrains()) | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 return true; |  |  |  |                                 return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                             if (this.greaterThanEqual && trains < eff.getTrains()) |  |  |  |                             if (this.greaterThanEqual && trains < eff.getTrains()) | 
			
		
	
		
		
			
				
					
					|  |  |  |                                 return true; |  |  |  |                                 return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |                         } |  |  |  |                         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -282,10 +290,12 @@ public class ActionsBase { | 
			
		
	
		
		
			
				
					
					|  |  |  |             PlayerBonuses bonus = ac.getBonuses(); |  |  |  |             PlayerBonuses bonus = ac.getBonuses(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (bonus == null) |  |  |  |             if (bonus == null) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return false; |  |  |  |                 return false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             SourceType sourceType = null; |  |  |  |             SourceType sourceType = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |             try { |  |  |  |             try { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 sourceType = SourceType.GetSourceType(this.stackType); |  |  |  |                 sourceType = SourceType.GetSourceType(this.stackType); | 
			
		
	
		
		
			
				
					
					|  |  |  |             }catch(Exception ignored){ |  |  |  |             }catch(Exception ignored){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             if(sourceType != null && (bonus.getBool(ModType.ImmuneTo,sourceType) || bonus.getBool(ModType.NoMod,sourceType))) |  |  |  |             if(sourceType != null && (bonus.getBool(ModType.ImmuneTo,sourceType) || bonus.getBool(ModType.NoMod,sourceType))) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return true; |  |  |  |                 return true; | 
			
		
	
	
		
		
			
				
					|  |  | @ -296,12 +306,16 @@ public class ActionsBase { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if(this.stackType.equals("Stun") && pc.getRace().getName().contains("Minotaur")) |  |  |  |                 if(this.stackType.equals("Stun") && pc.getRace().getName().contains("Minotaur")) | 
			
		
	
		
		
			
				
					
					|  |  |  |                     return true; |  |  |  |                     return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if(this.stackType.equals("Stun") && bonus.getBool(ModType.ImmuneTo,SourceType.Stun)) |  |  |  |             if(this.stackType.equals("Stun") && bonus.getBool(ModType.ImmuneTo,SourceType.Stun)) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return true; |  |  |  |                 return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if(pb.vampDrain() && bonus.getBool(ModType.BlockedPowerType, SourceType.VAMPDRAIN)) |  |  |  |             if(pb.vampDrain() && bonus.getBool(ModType.BlockedPowerType, SourceType.VAMPDRAIN)) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return true; |  |  |  |                 return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (this.stackType.equals("Track") && bonus.getBool(ModType.CannotTrack, SourceType.None)) |  |  |  |             if (this.stackType.equals("Track") && bonus.getBool(ModType.CannotTrack, SourceType.None)) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return true; |  |  |  |                 return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             if (this.stackType.equals("PowerInhibitor") && bonus.getBool(ModType.ImmuneTo, SourceType.Powerblock)) |  |  |  |             if (this.stackType.equals("PowerInhibitor") && bonus.getBool(ModType.ImmuneTo, SourceType.Powerblock)) | 
			
		
	
		
		
			
				
					
					|  |  |  |                 return true; |  |  |  |                 return true; | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |