forked from MagicBane/Server
allow pve mode toons to cast summon
This commit is contained in:
@@ -240,6 +240,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 (AbstractWorldObject.IsAbstractCharacter(awo)) {
|
if (AbstractWorldObject.IsAbstractCharacter(awo)) {
|
||||||
AbstractCharacter target = (AbstractCharacter) awo;
|
AbstractCharacter target = (AbstractCharacter) awo;
|
||||||
if (source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
|
if (source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) {
|
||||||
@@ -251,6 +252,7 @@ public class ActionsBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(pb.isChant)
|
if(pb.isChant)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user