forked from MagicBane/Server
EffectBase sources and fail conditions static maps removed
This commit is contained in:
@@ -375,7 +375,7 @@ public abstract class AbstractWorldObject extends AbstractGameObject {
|
||||
if (eff == null) {
|
||||
continue;
|
||||
}
|
||||
if (eff.containsSource(source) && trains >= eff.getTrains()) {
|
||||
if (eff.getEffectsBase().effectSources.contains(source) && trains >= eff.getTrains()) {
|
||||
if (removeAll) {
|
||||
//remove all effects of source type
|
||||
if (eff.cancel()) {
|
||||
|
||||
@@ -433,12 +433,6 @@ public class Effect {
|
||||
return duration;
|
||||
}
|
||||
|
||||
public boolean containsSource(EffectSourceType source) {
|
||||
if (this.eb != null)
|
||||
return this.eb.containsSource(source);
|
||||
return false;
|
||||
}
|
||||
|
||||
public JobContainer getJobContainer() {
|
||||
return this.jc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user